#1D1F85#1D1F85

#1D1F85 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.164 H 271.8°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1D1F85
RGBrgb(29, 31, 133)
HSLhsl(239, 64%, 32%)
HSVhsv(239, 78%, 52%)
CMYKcmyk(78.2%, 76.7%, 0%, 47.8%)
CIE-LABlab(19.78, 35.95, -56.51)
CIE-LCHlch(19.78, 66.98, 302.46°)
OKLaboklab(32.37% 0.005 -0.1636)
OKLCHoklch(32.37% 0.164 271.8)
XYZxyz(5.2289, 2.9341, 22.4765)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F85 #85831D
analogous
#1D5385 #1D1F85 #4F1D85
triadic
#1D1F85 #851D1F #1F851D
tetradic
#1D1F85 #851D53 #85831D #1D854F
square
#1D1F85 #851D53 #85831D #1D854F
split-complementary
#1D1F85 #854F1D #53851D
monochromatic
#070821 #121353 #1D1F85 #282BB7 #4649D7

Accessibility & contrast

On white

13.23
#1D1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F85
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F85#FFFFFF#000000##FFFFFF
##1D1F851.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003588
Deuteranopia (green-blind)
#002B83
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d1f85;
/* rgb */ color: rgb(29, 31, 133);
/* oklch */ color: oklch(32.4% 0.164 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c5caa',
    500: '#1d1f85',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f85;
$custom-light: #6c5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f85",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 238.846,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32367,
    "c": 0.16368,
    "h": 271.8
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#1D1F85
secondary
#B8B646
accent
#E441E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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