#1D1F96#1D1F96

#1D1F96 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.185 H 270.6°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#1D1F96
RGBrgb(29, 31, 150)
HSLhsl(239, 68%, 35%)
HSVhsv(239, 81%, 59%)
CMYKcmyk(80.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(21.74, 41.81, -63.87)
CIE-LCHlch(21.74, 76.34, 303.21°)
OKLaboklab(34.32% 0.0018 -0.185)
OKLCHoklch(34.32% 0.185 270.6)
XYZxyz(6.4998, 3.4425, 29.1701)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F96 #96941D
analogous
#1D5C96 #1D1F96 #571D96
triadic
#1D1F96 #961D1F #1F961D
tetradic
#1D1F96 #961D5C #96941D #1D9657
square
#1D1F96 #961D5C #96941D #1D9657
split-complementary
#1D1F96 #96571D #5C961D
monochromatic
#090A2F #131463 #1D1F96 #272AC9 #5053DD

Accessibility & contrast

On white

12.44
#1D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F96
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F96#FFFFFF#000000##FFFFFF
##1D1F961.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d1f96;
/* rgb */ color: rgb(29, 31, 150);
/* oklch */ color: oklch(34.3% 0.185 270.6);
Tailwind
colors: {
  custom: {
    50: '#715db6',
    500: '#1d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f96;
$custom-light: #715db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f96",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 239.008,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34324,
    "c": 0.18497,
    "h": 270.6
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#1D1F96
secondary
#C0BE4F
accent
#E83DEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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