#1F1E95#1F1E95

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

Color values

HEX#1F1E95
RGBrgb(31, 30, 149)
HSLhsl(241, 66%, 35%)
HSVhsv(241, 80%, 58%)
CMYKcmyk(79.2%, 79.9%, 0%, 41.6%)
CIE-LABlab(21.54, 42.16, -63.57)
CIE-LCHlch(21.54, 76.28, 303.55°)
OKLaboklab(34.18% 0.0046 -0.184)
OKLCHoklch(34.18% 0.184 271.4)
XYZxyz(6.4523, 3.3891, 28.7420)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E95 #94951E
analogous
#1E5995 #1F1E95 #5A1E95
triadic
#1F1E95 #951F1E #1E951F
tetradic
#1F1E95 #951E59 #94951E #1E955A
square
#1F1E95 #951E59 #94951E #1E955A
split-complementary
#1F1E95 #955A1E #59951E
monochromatic
#0A092F #141462 #1F1E95 #2A28C8 #5351DC

Accessibility & contrast

On white

12.51
#1F1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1E95
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E95#FFFFFF#000000##FFFFFF
##1F1E951.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f1e95;
/* rgb */ color: rgb(31, 30, 149);
/* oklch */ color: oklch(34.2% 0.184 271.4);
Tailwind
colors: {
  custom: {
    50: '#715cb5',
    500: '#1f1e95',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e95;
$custom-light: #715cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e95",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 240.504,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34182,
    "c": 0.18411,
    "h": 271.4
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#1F1E95
secondary
#BEBF50
accent
#E93EE8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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