#1E218F#1E218F

#1E218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.174 H 271.2°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#1E218F
RGBrgb(30, 33, 143)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 79%, 56%)
CMYKcmyk(79%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.38, 38.36, -60.12)
CIE-LCHlch(21.38, 71.31, 302.54°)
OKLaboklab(33.85% 0.0035 -0.1741)
OKLCHoklch(33.85% 0.174 271.2)
XYZxyz(6.0355, 3.3462, 26.3091)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E218F #8F8C1E
analogous
#1E5A8F #1E218F #541E8F
triadic
#1E218F #8F1E21 #218F1E
tetradic
#1E218F #8F1E5A #8F8C1E #1E8F54
square
#1E218F #8F1E5A #8F8C1E #1E8F54
split-complementary
#1E218F #8F541E #5A8F1E
monochromatic
#090A2A #13155C #1E218F #292DC2 #4E51DA

Accessibility & contrast

On white

12.58
#1E218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1E218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E218F
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E218F#FFFFFF#000000##FFFFFF
##1E218F1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e218f;
/* rgb */ color: rgb(30, 33, 143);
/* oklch */ color: oklch(33.9% 0.174 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f5eb1',
    500: '#1e218f',
    950: '#000000',
  },
}
SCSS
$custom: #1e218f;
$custom-light: #6f5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e218f",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 238.407,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33852,
    "c": 0.17412,
    "h": 271.2
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#1E218F
secondary
#BCB94C
accent
#E440E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E218F

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

Preview Lab → · Contrast checker → · Palette generator →

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