#1E217F#1E217F

#1E217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.153 H 272.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#1E217F
RGBrgb(30, 33, 127)
HSLhsl(238, 62%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(76.4%, 74%, 0%, 50.2%)
CIE-LABlab(19.62, 32.66, -52.98)
CIE-LCHlch(19.62, 62.24, 301.66°)
OKLaboklab(32.07% 0.0063 -0.1533)
OKLCHoklch(32.07% 0.153 272.3)
XYZxyz(4.9088, 2.8955, 20.3748)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217F #7F7C1E
analogous
#1E517F #1E217F #4B1E7F
triadic
#1E217F #7F1E21 #217F1E
tetradic
#1E217F #7F1E51 #7F7C1E #1E7F4B
square
#1E217F #7F1E51 #7F7C1E #1E7F4B
split-complementary
#1E217F #7F4B1E #517F1E
monochromatic
#07071C #12144D #1E217F #2A2EB1 #4449D3

Accessibility & contrast

On white

13.30
#1E217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1E217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E217F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217F#FFFFFF#000000##FFFFFF
##1E217F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e217f;
/* rgb */ color: rgb(30, 33, 127);
/* oklch */ color: oklch(32.1% 0.153 272.3);
Tailwind
colors: {
  custom: {
    50: '#6b5da5',
    500: '#1e217f',
    950: '#000000',
  },
}
SCSS
$custom: #1e217f;
$custom-light: #6b5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217f",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 238.144,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32075,
    "c": 0.15343,
    "h": 272.3
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E217F

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

Preview Lab → · Contrast checker → · Palette generator →

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