#1E218D#1E218D

#1E218D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.172 H 271.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1E218D
RGBrgb(30, 33, 141)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(78.7%, 76.6%, 0%, 44.7%)
CIE-LABlab(21.16, 37.66, -59.25)
CIE-LCHlch(21.16, 70.20, 302.44°)
OKLaboklab(33.63% 0.0039 -0.1715)
OKLCHoklch(33.63% 0.172 271.3)
XYZxyz(5.8854, 3.2862, 25.5183)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E218D #8D8A1E
analogous
#1E588D #1E218D #521E8D
triadic
#1E218D #8D1E21 #218D1E
tetradic
#1E218D #8D1E58 #8D8A1E #1E8D52
square
#1E218D #8D1E58 #8D8A1E #1E8D52
split-complementary
#1E218D #8D521E #588D1E
monochromatic
#090928 #13155B #1E218D #292DBF #4C50D9

Accessibility & contrast

On white

12.67
#1E218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1E218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E218D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E218D#FFFFFF#000000##FFFFFF
##1E218D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002D8B
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e218d;
/* rgb */ color: rgb(30, 33, 141);
/* oklch */ color: oklch(33.6% 0.172 271.3);
Tailwind
colors: {
  custom: {
    50: '#6f5eb0',
    500: '#1e218d',
    950: '#000000',
  },
}
SCSS
$custom: #1e218d;
$custom-light: #6f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e218d",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 238.378,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33626,
    "c": 0.17158,
    "h": 271.3
  },
  "luminance": 0.03287
}

Semantic roles & 50–950 ramp

primary
#1E218D
secondary
#BCB94B
accent
#E340E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E218D

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

Preview Lab → · Contrast checker → · Palette generator →

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