#1D1F91#1D1F91

#1D1F91 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.179 H 270.9°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1D1F91
RGBrgb(29, 31, 145)
HSLhsl(239, 67%, 34%)
HSVhsv(239, 80%, 57%)
CMYKcmyk(80%, 78.6%, 0%, 43.1%)
CIE-LABlab(21.15, 40.12, -61.75)
CIE-LCHlch(21.15, 73.63, 303.01°)
OKLaboklab(33.74% 0.0028 -0.1788)
OKLCHoklch(33.74% 0.179 270.9)
XYZxyz(6.1058, 3.2848, 27.0948)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F91 #918F1D
analogous
#1D5991 #1D1F91 #551D91
triadic
#1D1F91 #911D1F #1F911D
tetradic
#1D1F91 #911D59 #918F1D #1D9155
square
#1D1F91 #911D59 #918F1D #1D9155
split-complementary
#1D1F91 #91551D #59911D
monochromatic
#09092B #13145E #1D1F91 #272AC4 #4D4FDB

Accessibility & contrast

On white

12.67
#1D1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F91
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F91#FFFFFF#000000##FFFFFF
##1D1F911.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#002D8F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d1f91;
/* rgb */ color: rgb(29, 31, 145);
/* oklch */ color: oklch(33.7% 0.179 270.9);
Tailwind
colors: {
  custom: {
    50: '#6f5db2',
    500: '#1d1f91',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f91;
$custom-light: #6f5db2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f91",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 238.966,
    "s": 66.667,
    "l": 34.118
  },
  "oklch": {
    "l": 0.33741,
    "c": 0.17881,
    "h": 270.9
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#1D1F91
secondary
#BEBC4C
accent
#E73EEA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1D1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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