#1D1F82#1D1F82

#1D1F82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.160 H 272.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#1D1F82
RGBrgb(29, 31, 130)
HSLhsl(239, 64%, 31%)
HSVhsv(239, 78%, 51%)
CMYKcmyk(77.7%, 76.2%, 0%, 49%)
CIE-LABlab(19.44, 34.88, -55.18)
CIE-LCHlch(19.44, 65.28, 302.30°)
OKLaboklab(32.03% 0.0056 -0.1597)
OKLCHoklch(32.03% 0.16 272)
XYZxyz(5.0246, 2.8524, 21.4005)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F82 #82801D
analogous
#1D5182 #1D1F82 #4D1D82
triadic
#1D1F82 #821D1F #1F821D
tetradic
#1D1F82 #821D51 #82801D #1D824D
square
#1D1F82 #821D51 #82801D #1D824D
split-complementary
#1D1F82 #824D1D #51821D
monochromatic
#07071E #121350 #1D1F82 #282BB4 #4447D5

Accessibility & contrast

On white

13.37
#1D1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1D1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F82
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F82#FFFFFF#000000##FFFFFF
##1D1F821.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d1f82;
/* rgb */ color: rgb(29, 31, 130);
/* oklch */ color: oklch(32.0% 0.160 272.0);
Tailwind
colors: {
  custom: {
    50: '#6b5ca7',
    500: '#1d1f82',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f82;
$custom-light: #6b5ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f82",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 238.812,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32029,
    "c": 0.15981,
    "h": 272
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#1D1F82
secondary
#B5B346
accent
#E341E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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