#1E1F8D#1E1F8D

#1E1F8D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.174 H 271.6°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#1E1F8D
RGBrgb(30, 31, 141)
HSLhsl(239, 65%, 34%)
HSVhsv(239, 79%, 55%)
CMYKcmyk(78.7%, 78%, 0%, 44.7%)
CIE-LABlab(20.74, 38.82, -59.93)
CIE-LCHlch(20.74, 71.40, 302.94°)
OKLaboklab(33.34% 0.0047 -0.1735)
OKLCHoklch(33.34% 0.174 271.6)
XYZxyz(5.8315, 3.1784, 25.5003)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F8D #8D8C1E
analogous
#1E568D #1E1F8D #541E8D
triadic
#1E1F8D #8D1E1F #1F8D1E
tetradic
#1E1F8D #8D1E56 #8D8C1E #1E8D54
square
#1E1F8D #8D1E56 #8D8C1E #1E8D54
split-complementary
#1E1F8D #8D541E #568D1E
monochromatic
#090928 #13145B #1E1F8D #292ABF #4C4ED9

Accessibility & contrast

On white

12.84
#1E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E1F8D
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F8D#FFFFFF#000000##FFFFFF
##1E1F8D1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e1f8d;
/* rgb */ color: rgb(30, 31, 141);
/* oklch */ color: oklch(33.3% 0.174 271.6);
Tailwind
colors: {
  custom: {
    50: '#6f5cb0',
    500: '#1e1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f8d;
$custom-light: #6f5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f8d",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 239.459,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33335,
    "c": 0.17355,
    "h": 271.6
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#1E1F8D
secondary
#BCBB4B
accent
#E640E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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