#1F1D96#1F1D96

#1F1D96 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.186 H 271.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#1F1D96
RGBrgb(31, 29, 150)
HSLhsl(241, 68%, 35%)
HSVhsv(241, 81%, 59%)
CMYKcmyk(79.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(21.47, 43.03, -64.30)
CIE-LCHlch(21.47, 77.37, 303.79°)
OKLaboklab(34.17% 0.0047 -0.1861)
OKLCHoklch(34.17% 0.186 271.4)
XYZxyz(6.5076, 3.3713, 29.1560)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D96 #94961D
analogous
#1D5796 #1F1D96 #5C1D96
triadic
#1F1D96 #961F1D #1D961F
tetradic
#1F1D96 #961D57 #94961D #1D965C
square
#1F1D96 #961D57 #94961D #1D965C
split-complementary
#1F1D96 #965C1D #57961D
monochromatic
#0A092F #141363 #1F1D96 #2A27C9 #5350DD

Accessibility & contrast

On white

12.54
#1F1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1D96
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D96#FFFFFF#000000##FFFFFF
##1F1D961.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#002D94
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1d96;
/* rgb */ color: rgb(31, 29, 150);
/* oklch */ color: oklch(34.2% 0.186 271.4);
Tailwind
colors: {
  custom: {
    50: '#725cb6',
    500: '#1f1d96',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d96;
$custom-light: #725cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d96",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 240.992,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3417,
    "c": 0.1862,
    "h": 271.4
  },
  "luminance": 0.03372
}

Semantic roles & 50–950 ramp

primary
#1F1D96
secondary
#BEC04F
accent
#EA3DE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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