#1D1F97#1D1F97

#1D1F97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.186 H 270.5°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1D1F97
RGBrgb(29, 31, 151)
HSLhsl(239, 68%, 35%)
HSVhsv(239, 81%, 59%)
CMYKcmyk(80.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(21.85, 42.15, -64.29)
CIE-LCHlch(21.85, 76.88, 303.25°)
OKLaboklab(34.44% 0.0016 -0.1862)
OKLCHoklch(34.44% 0.186 270.5)
XYZxyz(6.5807, 3.4748, 29.5960)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F97 #97951D
analogous
#1D5C97 #1D1F97 #581D97
triadic
#1D1F97 #971D1F #1F971D
tetradic
#1D1F97 #971D5C #97951D #1D9758
square
#1D1F97 #971D5C #97951D #1D9758
split-complementary
#1D1F97 #97581D #5C971D
monochromatic
#090A30 #131464 #1D1F97 #272ACA #5153DE

Accessibility & contrast

On white

12.39
#1D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F97
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F97#FFFFFF#000000##FFFFFF
##1D1F971.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d1f97;
/* rgb */ color: rgb(29, 31, 151);
/* oklch */ color: oklch(34.4% 0.186 270.5);
Tailwind
colors: {
  custom: {
    50: '#715db7',
    500: '#1d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f97;
$custom-light: #715db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f97",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 239.016,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.18619,
    "h": 270.5
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#1D1F97
secondary
#C0BF4F
accent
#E83DEB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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