#1D1F86#1D1F86

#1D1F86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.165 H 271.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#1D1F86
RGBrgb(29, 31, 134)
HSLhsl(239, 64%, 32%)
HSVhsv(239, 78%, 53%)
CMYKcmyk(78.4%, 76.9%, 0%, 47.5%)
CIE-LABlab(19.89, 36.30, -56.96)
CIE-LCHlch(19.89, 67.54, 302.51°)
OKLaboklab(32.48% 0.0049 -0.1649)
OKLCHoklch(32.48% 0.165 271.7)
XYZxyz(5.2983, 2.9618, 22.8421)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F86 #86841D
analogous
#1D5486 #1D1F86 #501D86
triadic
#1D1F86 #861D1F #1F861D
tetradic
#1D1F86 #861D54 #86841D #1D8650
square
#1D1F86 #861D54 #86841D #1D8650
split-complementary
#1D1F86 #86501D #54861D
monochromatic
#070821 #121354 #1D1F86 #282BB8 #4649D7

Accessibility & contrast

On white

13.19
#1D1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1F86
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F86#FFFFFF#000000##FFFFFF
##1D1F861.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d1f86;
/* rgb */ color: rgb(29, 31, 134);
/* oklch */ color: oklch(32.5% 0.165 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d5caa',
    500: '#1d1f86',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f86;
$custom-light: #6d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f86",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 238.857,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3248,
    "c": 0.16496,
    "h": 271.7
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

primary
#1D1F86
secondary
#B9B746
accent
#E440E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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