#1E218E#1E218E

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

Color values

HEX#1E218E
RGBrgb(30, 33, 142)
HSLhsl(238, 65%, 34%)
HSVhsv(238, 79%, 56%)
CMYKcmyk(78.9%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.27, 38.01, -59.68)
CIE-LCHlch(21.27, 70.76, 302.49°)
OKLaboklab(33.74% 0.0037 -0.1728)
OKLCHoklch(33.74% 0.173 271.2)
XYZxyz(5.9601, 3.3161, 25.9119)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E218E #8E8B1E
analogous
#1E598E #1E218E #531E8E
triadic
#1E218E #8E1E21 #218E1E
tetradic
#1E218E #8E1E59 #8E8B1E #1E8E53
square
#1E218E #8E1E59 #8E8B1E #1E8E53
split-complementary
#1E218E #8E531E #598E1E
monochromatic
#090A29 #13155B #1E218E #292DC1 #4D51D9

Accessibility & contrast

On white

12.62
#1E218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E218E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E218E#FFFFFF#000000##FFFFFF
##1E218E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e218e;
/* rgb */ color: rgb(30, 33, 142);
/* oklch */ color: oklch(33.7% 0.173 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f5eb0',
    500: '#1e218e',
    950: '#000000',
  },
}
SCSS
$custom: #1e218e;
$custom-light: #6f5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e218e",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 238.393,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33739,
    "c": 0.17285,
    "h": 271.2
  },
  "luminance": 0.03317
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E218E

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

Preview Lab → · Contrast checker → · Palette generator →

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