#1E218B#1E218B

#1E218B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.169 H 271.4°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1E218B
RGBrgb(30, 33, 139)
HSLhsl(238, 64%, 33%)
HSVhsv(238, 78%, 55%)
CMYKcmyk(78.4%, 76.3%, 0%, 45.5%)
CIE-LABlab(20.93, 36.96, -58.37)
CIE-LCHlch(20.93, 69.08, 302.34°)
OKLaboklab(33.4% 0.0043 -0.169)
OKLCHoklch(33.4% 0.169 271.4)
XYZxyz(5.7379, 3.2272, 24.7416)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E218B #8B881E
analogous
#1E578B #1E218B #521E8B
triadic
#1E218B #8B1E21 #218B1E
tetradic
#1E218B #8B1E57 #8B881E #1E8B52
square
#1E218B #8B1E57 #8B881E #1E8B52
split-complementary
#1E218B #8B521E #578B1E
monochromatic
#080926 #131559 #1E218B #292DBD #4B4FD8

Accessibility & contrast

On white

12.76
#1E218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1E218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E218B
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E218B#FFFFFF#000000##FFFFFF
##1E218B1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e218b;
/* rgb */ color: rgb(30, 33, 139);
/* oklch */ color: oklch(33.4% 0.169 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e5eae',
    500: '#1e218b',
    950: '#000000',
  },
}
SCSS
$custom: #1e218b;
$custom-light: #6e5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#1e218b",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 238.349,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33401,
    "c": 0.16904,
    "h": 271.4
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#1E218B
secondary
#BBB84A
accent
#E340E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E218B

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

Preview Lab → · Contrast checker → · Palette generator →

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