#1F1F96#1F1F96

#1F1F96 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.184 H 271.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1F1F96
RGBrgb(31, 31, 150)
HSLhsl(240, 66%, 35%)
HSVhsv(240, 79%, 59%)
CMYKcmyk(79.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(21.85, 41.95, -63.68)
CIE-LCHlch(21.85, 76.26, 303.38°)
OKLaboklab(34.43% 0.0041 -0.1844)
OKLCHoklch(34.43% 0.184 271.3)
XYZxyz(6.5582, 3.4726, 29.1729)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F96 #96961F
analogous
#1F5A96 #1F1F96 #5A1F96
triadic
#1F1F96 #961F1F #1F961F
tetradic
#1F1F96 #961F5A #96961F #1F965A
square
#1F1F96 #961F5A #96961F #1F965A
split-complementary
#1F1F96 #965A1F #5A961F
monochromatic
#0A0A31 #151563 #1F1F96 #2929C9 #5454DC

Accessibility & contrast

On white

12.39
#1F1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F96
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F96#FFFFFF#000000##FFFFFF
##1F1F961.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A99
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1f96;
/* rgb */ color: rgb(31, 31, 150);
/* oklch */ color: oklch(34.4% 0.184 271.3);
Tailwind
colors: {
  custom: {
    50: '#715db6',
    500: '#1f1f96',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f96;
$custom-light: #715db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f96",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 240,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34431,
    "c": 0.18442,
    "h": 271.3
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#1F1F96
secondary
#BFBF52
accent
#E93FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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