#1D1B9E#1D1B9E

#1D1B9E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.198 H 270.3°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#1D1B9E
RGBrgb(29, 27, 158)
HSLhsl(241, 71%, 36%)
HSVhsv(241, 83%, 62%)
CMYKcmyk(81.6%, 82.9%, 0%, 38%)
CIE-LABlab(21.99, 46.51, -68.36)
CIE-LCHlch(21.99, 82.68, 304.23°)
OKLaboklab(34.78% 0.0012 -0.1979)
OKLCHoklch(34.78% 0.198 270.3)
XYZxyz(7.0681, 3.5129, 32.6467)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B9E #9C9E1B
analogous
#1B5B9E #1D1B9E #5F1B9E
triadic
#1D1B9E #9E1D1B #1B9E1D
tetradic
#1D1B9E #9E1B5B #9C9E1B #1B9E5F
square
#1D1B9E #9E1B5B #9C9E1B #1B9E5F
split-complementary
#1D1B9E #9E5F1B #5B9E1B
monochromatic
#0A0935 #13126A #1D1B9E #2724D2 #5452E1

Accessibility & contrast

On white

12.33
#1D1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1B9E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B9E#FFFFFF#000000##FFFFFF
##1D1B9E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1d1b9e;
/* rgb */ color: rgb(29, 27, 158);
/* oklch */ color: oklch(34.8% 0.198 270.3);
Tailwind
colors: {
  custom: {
    50: '#735bbc',
    500: '#1d1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b9e;
$custom-light: #735bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b9e",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 240.916,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.34782,
    "c": 0.19789,
    "h": 270.3
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#1D1B9E
secondary
#C2C451
accent
#EE3AEB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1D1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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