#1D1F8D#1D1F8D

#1D1F8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.174 H 271.2°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#1D1F8D
RGBrgb(29, 31, 141)
HSLhsl(239, 66%, 33%)
HSVhsv(239, 79%, 55%)
CMYKcmyk(79.4%, 78%, 0%, 44.7%)
CIE-LABlab(20.69, 38.74, -60.02)
CIE-LCHlch(20.69, 71.44, 302.84°)
OKLaboklab(33.28% 0.0035 -0.1738)
OKLCHoklch(33.28% 0.174 271.2)
XYZxyz(5.8028, 3.1636, 25.4990)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F8D #8D8B1D
analogous
#1D578D #1D1F8D #531D8D
triadic
#1D1F8D #8D1D1F #1F8D1D
tetradic
#1D1F8D #8D1D57 #8D8B1D #1D8D53
square
#1D1F8D #8D1D57 #8D8B1D #1D8D53
split-complementary
#1D1F8D #8D531D #578D1D
monochromatic
#080927 #13145A #1D1F8D #272AC0 #4B4DDA

Accessibility & contrast

On white

12.86
#1D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F8D
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F8D#FFFFFF#000000##FFFFFF
##1D1F8D1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002C8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d1f8d;
/* rgb */ color: rgb(29, 31, 141);
/* oklch */ color: oklch(33.3% 0.174 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e5cb0',
    500: '#1d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f8d;
$custom-light: #6e5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f8d",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 238.929,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33279,
    "c": 0.17383,
    "h": 271.2
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#1D1F8D
secondary
#BCBA4A
accent
#E63FE9
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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