#1E217A#1E217A

#1E217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.147 H 272.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1E217A
RGBrgb(30, 33, 122)
HSLhsl(238, 61%, 30%)
HSVhsv(238, 75%, 48%)
CMYKcmyk(75.4%, 73%, 0%, 52.2%)
CIE-LABlab(19.09, 30.84, -50.67)
CIE-LCHlch(19.09, 59.32, 301.32°)
OKLaboklab(31.54% 0.007 -0.1466)
OKLCHoklch(31.54% 0.147 272.7)
XYZxyz(4.5909, 2.7684, 18.7010)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217A #7A771E
analogous
#1E4F7A #1E217A #491E7A
triadic
#1E217A #7A1E21 #217A1E
tetradic
#1E217A #7A1E4F #7A771E #1E7A49
square
#1E217A #7A1E4F #7A771E #1E7A49
split-complementary
#1E217A #7A491E #4F7A1E
monochromatic
#060719 #121449 #1E217A #2A2EAB #4247D0

Accessibility & contrast

On white

13.52
#1E217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1E217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E217A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217A#FFFFFF#000000##FFFFFF
##1E217A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e217a;
/* rgb */ color: rgb(30, 33, 122);
/* oklch */ color: oklch(31.5% 0.147 272.7);
Tailwind
colors: {
  custom: {
    50: '#695da1',
    500: '#1e217a',
    950: '#000000',
  },
}
SCSS
$custom: #1e217a;
$custom-light: #695da1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217a",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 238.043,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31536,
    "c": 0.14673,
    "h": 272.7
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#1E217A
secondary
#AEAA46
accent
#DE44E4
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1E217A

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

Preview Lab → · Contrast checker → · Palette generator →

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