#1E217B#1E217B

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

Color values

HEX#1E217B
RGBrgb(30, 33, 123)
HSLhsl(238, 61%, 30%)
HSVhsv(238, 76%, 48%)
CMYKcmyk(75.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.20, 31.20, -51.14)
CIE-LCHlch(19.20, 59.90, 301.39°)
OKLaboklab(31.64% 0.0069 -0.1479)
OKLCHoklch(31.64% 0.148 272.7)
XYZxyz(4.6532, 2.7933, 19.0290)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E217B #7B781E
analogous
#1E4F7B #1E217B #4A1E7B
triadic
#1E217B #7B1E21 #217B1E
tetradic
#1E217B #7B1E4F #7B781E #1E7B4A
square
#1E217B #7B1E4F #7B781E #1E7B4A
split-complementary
#1E217B #7B4A1E #4F7B1E
monochromatic
#060719 #12144A #1E217B #2A2EAC #4247D1

Accessibility & contrast

On white

13.47
#1E217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E217B
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E217B#FFFFFF#000000##FFFFFF
##1E217B1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e217b;
/* rgb */ color: rgb(30, 33, 123);
/* oklch */ color: oklch(31.6% 0.148 272.7);
Tailwind
colors: {
  custom: {
    50: '#6a5da2',
    500: '#1e217b',
    950: '#000000',
  },
}
SCSS
$custom: #1e217b;
$custom-light: #6a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e217b",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 238.065,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.31643,
    "c": 0.14808,
    "h": 272.7
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E217B

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

Preview Lab → · Contrast checker → · Palette generator →

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