#1D1E97#1D1E97

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

Color values

HEX#1D1E97
RGBrgb(29, 30, 151)
HSLhsl(240, 68%, 35%)
HSVhsv(240, 81%, 59%)
CMYKcmyk(80.8%, 80.1%, 0%, 40.8%)
CIE-LABlab(21.67, 42.69, -64.60)
CIE-LCHlch(21.67, 77.43, 303.46°)
OKLaboklab(34.31% 0.0019 -0.1871)
OKLCHoklch(34.31% 0.187 270.6)
XYZxyz(6.5550, 3.4234, 29.5875)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1E97 #97961D
analogous
#1D5B97 #1D1E97 #591D97
triadic
#1D1E97 #971D1E #1E971D
tetradic
#1D1E97 #971D5B #97961D #1D9759
square
#1D1E97 #971D5B #97961D #1D9759
split-complementary
#1D1E97 #97591D #5B971D
monochromatic
#090A30 #131464 #1D1E97 #2728CA #5152DE

Accessibility & contrast

On white

12.46
#1D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1E97
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1E97#FFFFFF#000000##FFFFFF
##1D1E971.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1e97;
/* rgb */ color: rgb(29, 30, 151);
/* oklch */ color: oklch(34.3% 0.187 270.6);
Tailwind
colors: {
  custom: {
    50: '#715cb7',
    500: '#1d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #1d1e97;
$custom-light: #715cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1e97",
  "rgb": {
    "r": 29,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 239.508,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34309,
    "c": 0.18707,
    "h": 270.6
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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