#1E1F8E#1E1F8E

#1E1F8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.175 H 271.5°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#1E1F8E
RGBrgb(30, 31, 142)
HSLhsl(239, 65%, 34%)
HSVhsv(239, 79%, 56%)
CMYKcmyk(78.9%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.86, 39.17, -60.36)
CIE-LCHlch(20.86, 71.95, 302.98°)
OKLaboklab(33.45% 0.0045 -0.1747)
OKLCHoklch(33.45% 0.175 271.5)
XYZxyz(5.9062, 3.2083, 25.8939)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F8E #8E8D1E
analogous
#1E578E #1E1F8E #551E8E
triadic
#1E1F8E #8E1E1F #1F8E1E
tetradic
#1E1F8E #8E1E57 #8E8D1E #1E8E55
square
#1E1F8E #8E1E57 #8E8D1E #1E8E55
split-complementary
#1E1F8E #8E551E #578E1E
monochromatic
#090929 #13145B #1E1F8E #292AC1 #4D4ED9

Accessibility & contrast

On white

12.79
#1E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1E1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F8E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F8E#FFFFFF#000000##FFFFFF
##1E1F8E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e1f8e;
/* rgb */ color: rgb(30, 31, 142);
/* oklch */ color: oklch(33.5% 0.175 271.5);
Tailwind
colors: {
  custom: {
    50: '#6f5cb0',
    500: '#1e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f8e;
$custom-light: #6f5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f8e",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 239.464,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3345,
    "c": 0.17481,
    "h": 271.5
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#1E1F8E
secondary
#BCBB4C
accent
#E740E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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