#1F187D#1F187D

#1F187D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.160 H 274.5°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#1F187D
RGBrgb(31, 24, 125)
HSLhsl(244, 68%, 29%)
HSVhsv(244, 81%, 49%)
CMYKcmyk(75.2%, 80.8%, 0%, 51%)
CIE-LABlab(17.57, 37.39, -55.08)
CIE-LCHlch(17.57, 66.58, 304.17°)
OKLaboklab(30.58% 0.0124 -0.1593)
OKLCHoklch(30.58% 0.16 274.5)
XYZxyz(4.5922, 2.4248, 19.6241)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F187D #767D18
analogous
#18447D #1F187D #52187D
triadic
#1F187D #7D1F18 #187D1F
tetradic
#1F187D #7D1844 #767D18 #187D52
square
#1F187D #7D1844 #767D18 #187D52
split-complementary
#1F187D #7D5218 #447D18
monochromatic
#06051A #120E4A #1F187D #2C22B0 #4237D9

Accessibility & contrast

On white

14.14
#1F187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#1F187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F187D
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F187D#FFFFFF#000000##FFFFFF
##1F187D1.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1f187d;
/* rgb */ color: rgb(31, 24, 125);
/* oklch */ color: oklch(30.6% 0.160 274.5);
Tailwind
colors: {
  custom: {
    50: '#6c57a4',
    500: '#1f187d',
    950: '#000000',
  },
}
SCSS
$custom: #1f187d;
$custom-light: #6c57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f187d",
  "rgb": {
    "r": 31,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 244.158,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30577,
    "c": 0.1598,
    "h": 274.5
  },
  "luminance": 0.02425
}

Semantic roles & 50–950 ramp

primary
#1F187D
secondary
#AAB23F
accent
#EB3DDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1F187D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#1F187D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva