#1D1F84#1D1F84

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

Color values

HEX#1D1F84
RGBrgb(29, 31, 132)
HSLhsl(239, 64%, 32%)
HSVhsv(239, 78%, 52%)
CMYKcmyk(78%, 76.5%, 0%, 48.2%)
CIE-LABlab(19.67, 35.59, -56.07)
CIE-LCHlch(19.67, 66.41, 302.41°)
OKLaboklab(32.25% 0.0052 -0.1623)
OKLCHoklch(32.25% 0.162 271.8)
XYZxyz(5.1601, 2.9066, 22.1144)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1F84 #84821D
analogous
#1D5384 #1D1F84 #4F1D84
triadic
#1D1F84 #841D1F #1F841D
tetradic
#1D1F84 #841D53 #84821D #1D844F
square
#1D1F84 #841D53 #84821D #1D844F
split-complementary
#1D1F84 #844F1D #53841D
monochromatic
#070720 #121352 #1D1F84 #282BB6 #4548D6

Accessibility & contrast

On white

13.28
#1D1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1F84
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1F84#FFFFFF#000000##FFFFFF
##1D1F841.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d1f84;
/* rgb */ color: rgb(29, 31, 132);
/* oklch */ color: oklch(32.3% 0.162 271.8);
Tailwind
colors: {
  custom: {
    50: '#6c5ca9',
    500: '#1d1f84',
    950: '#000000',
  },
}
SCSS
$custom: #1d1f84;
$custom-light: #6c5ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1f84",
  "rgb": {
    "r": 29,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 238.835,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32254,
    "c": 0.16239,
    "h": 271.8
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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