#1E217C#1E217C

#1E217C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.149 H 272.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#1E217C
RGBrgb(30, 33, 124)
HSLhsl(238, 61%, 30%)
HSVhsv(238, 76%, 49%)
CMYKcmyk(75.8%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.30, 31.57, -51.60)
CIE-LCHlch(19.30, 60.49, 301.46°)
OKLaboklab(31.75% 0.0067 -0.1493)
OKLCHoklch(31.75% 0.149 272.6)
XYZxyz(4.7161, 2.8185, 19.3603)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217C #7C791E
analogous
#1E507C #1E217C #4A1E7C
triadic
#1E217C #7C1E21 #217C1E
tetradic
#1E217C #7C1E50 #7C791E #1E7C4A
square
#1E217C #7C1E50 #7C791E #1E7C4A
split-complementary
#1E217C #7C4A1E #507C1E
monochromatic
#060719 #12144B #1E217C #2A2EAD #4347D1

Accessibility & contrast

On white

13.43
#1E217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1E217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E217C
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217C#FFFFFF#000000##FFFFFF
##1E217C1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e217c;
/* rgb */ color: rgb(30, 33, 124);
/* oklch */ color: oklch(31.8% 0.149 272.6);
Tailwind
colors: {
  custom: {
    50: '#6a5da3',
    500: '#1e217c',
    950: '#000000',
  },
}
SCSS
$custom: #1e217c;
$custom-light: #6a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217c",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 238.085,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31751,
    "c": 0.14942,
    "h": 272.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#1E217C
secondary
#AFAC46
accent
#DF44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #1E217C

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

Preview Lab → · Contrast checker → · Palette generator →

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