#1D1F89#1D1F89

#1D1F89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.169 H 271.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1D1F89
RGBrgb(29, 31, 137)
HSLhsl(239, 65%, 33%)
HSVhsv(239, 79%, 54%)
CMYKcmyk(78.8%, 77.4%, 0%, 46.3%)
CIE-LABlab(20.23, 37.35, -58.28)
CIE-LCHlch(20.23, 69.22, 302.66°)
OKLaboklab(32.82% 0.0043 -0.1687)
OKLCHoklch(32.82% 0.169 271.5)
XYZxyz(5.5105, 3.0467, 23.9597)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F89 #89871D
analogous
#1D5589 #1D1F89 #511D89
triadic
#1D1F89 #891D1F #1F891D
tetradic
#1D1F89 #891D55 #89871D #1D8951
square
#1D1F89 #891D55 #89871D #1D8951
split-complementary
#1D1F89 #89511D #55891D
monochromatic
#080824 #121456 #1D1F89 #282ABC #484BD8

Accessibility & contrast

On white

13.05
#1D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F89
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F89#FFFFFF#000000##FFFFFF
##1D1F891.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002B87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1d1f89;
/* rgb */ color: rgb(29, 31, 137);
/* oklch */ color: oklch(32.8% 0.169 271.5);
Tailwind
colors: {
  custom: {
    50: '#6d5cad',
    500: '#1d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f89;
$custom-light: #6d5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f89",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 238.889,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32821,
    "c": 0.16878,
    "h": 271.5
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#1D1F89
secondary
#BAB847
accent
#E540E8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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