#1F1E96#1F1E96

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

Color values

HEX#1F1E96
RGBrgb(31, 30, 150)
HSLhsl(241, 67%, 35%)
HSVhsv(241, 80%, 59%)
CMYKcmyk(79.3%, 80%, 0%, 41.2%)
CIE-LABlab(21.66, 42.49, -64.00)
CIE-LCHlch(21.66, 76.82, 303.58°)
OKLaboklab(34.3% 0.0044 -0.1853)
OKLCHoklch(34.3% 0.185 271.4)
XYZxyz(6.5325, 3.4211, 29.1643)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E96 #95961E
analogous
#1E5996 #1F1E96 #5B1E96
triadic
#1F1E96 #961F1E #1E961F
tetradic
#1F1E96 #961E59 #95961E #1E965B
square
#1F1E96 #961E59 #95961E #1E965B
split-complementary
#1F1E96 #965B1E #59961E
monochromatic
#0A0A30 #141463 #1F1E96 #2A28C9 #5352DC

Accessibility & contrast

On white

12.47
#1F1E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F1E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E96
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E96#FFFFFF#000000##FFFFFF
##1F1E961.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.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: #1f1e96;
/* rgb */ color: rgb(31, 30, 150);
/* oklch */ color: oklch(34.3% 0.185 271.4);
Tailwind
colors: {
  custom: {
    50: '#715cb6',
    500: '#1f1e96',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e96;
$custom-light: #715cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e96",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 240.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34299,
    "c": 0.18532,
    "h": 271.4
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#1F1E96
secondary
#BFBF50
accent
#EA3EE8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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