#1D1F9E#1D1F9E

#1D1F9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.195 H 270.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#1D1F9E
RGBrgb(29, 31, 158)
HSLhsl(239, 69%, 37%)
HSVhsv(239, 82%, 62%)
CMYKcmyk(81.6%, 80.4%, 0%, 38%)
CIE-LABlab(22.69, 44.48, -67.21)
CIE-LCHlch(22.69, 80.59, 303.50°)
OKLaboklab(35.27% 0.0002 -0.1946)
OKLCHoklch(35.27% 0.195 270.1)
XYZxyz(7.1661, 3.7090, 32.6793)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F9E #9E9C1D
analogous
#1D609E #1D1F9E #5C1D9E
triadic
#1D1F9E #9E1D1F #1F9E1D
tetradic
#1D1F9E #9E1D60 #9E9C1D #1D9E5C
square
#1D1F9E #9E1D60 #9E9C1D #1D9E5C
split-complementary
#1D1F9E #9E5C1D #609E1D
monochromatic
#0A0B37 #14156A #1D1F9E #2629D2 #5658E0

Accessibility & contrast

On white

12.06
#1D1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D1F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F9E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F9E#FFFFFF#000000##FFFFFF
##1D1F9E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#002F9C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d1f9e;
/* rgb */ color: rgb(29, 31, 158);
/* oklch */ color: oklch(35.3% 0.195 270.1);
Tailwind
colors: {
  custom: {
    50: '#735dbc',
    500: '#1d1f9e',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f9e;
$custom-light: #735dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f9e",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 239.07,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.35265,
    "c": 0.19463,
    "h": 270.1
  },
  "luminance": 0.0371
}

Semantic roles & 50–950 ramp

primary
#1D1F9E
secondary
#C3C154
accent
#E93CEC
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1D1F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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