#1E217D#1E217D

#1E217D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.151 H 272.5°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#1E217D
RGBrgb(30, 33, 125)
HSLhsl(238, 61%, 30%)
HSVhsv(238, 76%, 49%)
CMYKcmyk(76%, 73.6%, 0%, 51%)
CIE-LABlab(19.41, 31.94, -52.06)
CIE-LCHlch(19.41, 61.08, 301.53°)
OKLaboklab(31.86% 0.0066 -0.1506)
OKLCHoklch(31.86% 0.151 272.5)
XYZxyz(4.7797, 2.8439, 19.6951)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217D #7D7A1E
analogous
#1E507D #1E217D #4A1E7D
triadic
#1E217D #7D1E21 #217D1E
tetradic
#1E217D #7D1E50 #7D7A1E #1E7D4A
square
#1E217D #7D1E50 #7D7A1E #1E7D4A
split-complementary
#1E217D #7D4A1E #507D1E
monochromatic
#06071A #12144C #1E217D #2A2EAE #4348D2

Accessibility & contrast

On white

13.39
#1E217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1E217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E217D
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217D#FFFFFF#000000##FFFFFF
##1E217D1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e217d;
/* rgb */ color: rgb(30, 33, 125);
/* oklch */ color: oklch(31.9% 0.151 272.5);
Tailwind
colors: {
  custom: {
    50: '#6a5da4',
    500: '#1e217d',
    950: '#000000',
  },
}
SCSS
$custom: #1e217d;
$custom-light: #6a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217d",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 238.105,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31858,
    "c": 0.15076,
    "h": 272.5
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#1E217D
secondary
#B0AD46
accent
#DF43E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E217D

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

Preview Lab → · Contrast checker → · Palette generator →

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