#1E218C#1E218C

#1E218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.170 H 271.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#1E218C
RGBrgb(30, 33, 140)
HSLhsl(238, 65%, 33%)
HSVhsv(238, 79%, 55%)
CMYKcmyk(78.6%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.04, 37.31, -58.81)
CIE-LCHlch(21.04, 69.65, 302.39°)
OKLaboklab(33.51% 0.0041 -0.1703)
OKLCHoklch(33.51% 0.17 271.4)
XYZxyz(5.8113, 3.2565, 25.1282)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E218C #8C891E
analogous
#1E588C #1E218C #521E8C
triadic
#1E218C #8C1E21 #218C1E
tetradic
#1E218C #8C1E58 #8C891E #1E8C52
square
#1E218C #8C1E58 #8C891E #1E8C52
split-complementary
#1E218C #8C521E #588C1E
monochromatic
#080927 #13155A #1E218C #292DBE #4C50D9

Accessibility & contrast

On white

12.72
#1E218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E218C
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E218C#FFFFFF#000000##FFFFFF
##1E218C1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e218c;
/* rgb */ color: rgb(30, 33, 140);
/* oklch */ color: oklch(33.5% 0.170 271.4);
Tailwind
colors: {
  custom: {
    50: '#6e5eaf',
    500: '#1e218c',
    950: '#000000',
  },
}
SCSS
$custom: #1e218c;
$custom-light: #6e5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#1e218c",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 238.364,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33513,
    "c": 0.17032,
    "h": 271.4
  },
  "luminance": 0.03257
}

Semantic roles & 50–950 ramp

primary
#1E218C
secondary
#BBB84B
accent
#E340E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1E218C

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

Preview Lab → · Contrast checker → · Palette generator →

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