#1E1F97#1E1F97

#1E1F97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.186 H 270.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1E1F97
RGBrgb(30, 31, 151)
HSLhsl(240, 67%, 35%)
HSVhsv(240, 80%, 59%)
CMYKcmyk(80.1%, 79.5%, 0%, 40.8%)
CIE-LABlab(21.91, 42.22, -64.20)
CIE-LCHlch(21.91, 76.84, 303.33°)
OKLaboklab(34.49% 0.0027 -0.1859)
OKLCHoklch(34.49% 0.186 270.8)
XYZxyz(6.6094, 3.4896, 29.5974)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F97 #97961E
analogous
#1E5B97 #1E1F97 #591E97
triadic
#1E1F97 #971E1F #1F971E
tetradic
#1E1F97 #971E5B #97961E #1E9759
square
#1E1F97 #971E5B #97961E #1E9759
split-complementary
#1E1F97 #97591E #5B971E
monochromatic
#0A0A31 #141564 #1E1F97 #2829CA #5354DD

Accessibility & contrast

On white

12.37
#1E1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1E1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F97
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F97#FFFFFF#000000##FFFFFF
##1E1F971.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002E95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e1f97;
/* rgb */ color: rgb(30, 31, 151);
/* oklch */ color: oklch(34.5% 0.186 270.8);
Tailwind
colors: {
  custom: {
    50: '#715db7',
    500: '#1e1f97',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f97;
$custom-light: #715db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f97",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 239.504,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.18592,
    "h": 270.8
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#1E1F97
secondary
#C0BF51
accent
#E83EEA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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