#1D1F8B#1D1F8B

#1D1F8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.171 H 271.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#1D1F8B
RGBrgb(29, 31, 139)
HSLhsl(239, 65%, 33%)
HSVhsv(239, 79%, 55%)
CMYKcmyk(79.1%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.46, 38.05, -59.15)
CIE-LCHlch(20.46, 70.34, 302.75°)
OKLaboklab(33.05% 0.0039 -0.1713)
OKLCHoklch(33.05% 0.171 271.3)
XYZxyz(5.6553, 3.1046, 24.7223)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F8B #8B891D
analogous
#1D568B #1D1F8B #521D8B
triadic
#1D1F8B #8B1D1F #1F8B1D
tetradic
#1D1F8B #8B1D56 #8B891D #1D8B52
square
#1D1F8B #8B1D56 #8B891D #1D8B52
split-complementary
#1D1F8B #8B521D #568B1D
monochromatic
#080826 #121458 #1D1F8B #282ABE #494CD9

Accessibility & contrast

On white

12.95
#1D1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1D1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F8B
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F8B#FFFFFF#000000##FFFFFF
##1D1F8B1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d1f8b;
/* rgb */ color: rgb(29, 31, 139);
/* oklch */ color: oklch(33.1% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#6e5cae',
    500: '#1d1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f8b;
$custom-light: #6e5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f8b",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 238.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3305,
    "c": 0.17131,
    "h": 271.3
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#1D1F8B
secondary
#BBB949
accent
#E53FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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