#1E217E#1E217E

#1E217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.152 H 272.4°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1E217E
RGBrgb(30, 33, 126)
HSLhsl(238, 62%, 31%)
HSVhsv(238, 76%, 49%)
CMYKcmyk(76.2%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.51, 32.30, -52.52)
CIE-LCHlch(19.51, 61.66, 301.59°)
OKLaboklab(31.97% 0.0064 -0.152)
OKLCHoklch(31.97% 0.152 272.4)
XYZxyz(4.8439, 2.8696, 20.0332)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217E #7E7B1E
analogous
#1E517E #1E217E #4B1E7E
triadic
#1E217E #7E1E21 #217E1E
tetradic
#1E217E #7E1E51 #7E7B1E #1E7E4B
square
#1E217E #7E1E51 #7E7B1E #1E7E4B
split-complementary
#1E217E #7E4B1E #517E1E
monochromatic
#06071B #12144D #1E217E #2A2EAF #4448D2

Accessibility & contrast

On white

13.34
#1E217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1E217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E217E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217E#FFFFFF#000000##FFFFFF
##1E217E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e217e;
/* rgb */ color: rgb(30, 33, 126);
/* oklch */ color: oklch(32.0% 0.152 272.4);
Tailwind
colors: {
  custom: {
    50: '#6b5da4',
    500: '#1e217e',
    950: '#000000',
  },
}
SCSS
$custom: #1e217e;
$custom-light: #6b5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217e",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 238.125,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.1521,
    "h": 272.4
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#1E217E
secondary
#B1AE47
accent
#E043E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E217E

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

Preview Lab → · Contrast checker → · Palette generator →

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