#1E1F8B#1E1F8B

#1E1F8B is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.171 H 271.7°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#1E1F8B
RGBrgb(30, 31, 139)
HSLhsl(239, 64%, 33%)
HSVhsv(239, 78%, 55%)
CMYKcmyk(78.4%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.52, 38.13, -59.06)
CIE-LCHlch(20.52, 70.30, 302.85°)
OKLaboklab(33.11% 0.0051 -0.171)
OKLCHoklch(33.11% 0.171 271.7)
XYZxyz(5.6840, 3.1195, 24.7236)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F8B #8B8A1E
analogous
#1E558B #1E1F8B #541E8B
triadic
#1E1F8B #8B1E1F #1F8B1E
tetradic
#1E1F8B #8B1E55 #8B8A1E #1E8B54
square
#1E1F8B #8B1E55 #8B8A1E #1E8B54
split-complementary
#1E1F8B #8B541E #558B1E
monochromatic
#080926 #131459 #1E1F8B #292ABD #4B4CD8

Accessibility & contrast

On white

12.93
#1E1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1E1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F8B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F8B#FFFFFF#000000##FFFFFF
##1E1F8B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002C89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1e1f8b;
/* rgb */ color: rgb(30, 31, 139);
/* oklch */ color: oklch(33.1% 0.171 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e5cae',
    500: '#1e1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f8b;
$custom-light: #6e5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f8b",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 239.45,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33106,
    "c": 0.17105,
    "h": 271.7
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#1E1F8B
secondary
#BBBA4A
accent
#E640E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1E1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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