#1E2187#1E2187

#1E2187 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.164 H 271.7°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1E2187
RGBrgb(30, 33, 135)
HSLhsl(238, 64%, 32%)
HSVhsv(238, 78%, 53%)
CMYKcmyk(77.8%, 75.6%, 0%, 47.1%)
CIE-LABlab(20.49, 35.54, -56.60)
CIE-LCHlch(20.49, 66.83, 302.13°)
OKLaboklab(32.95% 0.005 -0.1638)
OKLCHoklch(32.95% 0.164 271.7)
XYZxyz(5.4510, 3.1124, 23.2304)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2187 #87841E
analogous
#1E5587 #1E2187 #501E87
triadic
#1E2187 #871E21 #21871E
tetradic
#1E2187 #871E55 #87841E #1E8750
square
#1E2187 #871E55 #87841E #1E8750
split-complementary
#1E2187 #87501E #55871E
monochromatic
#080923 #131555 #1E2187 #292DB9 #494DD7

Accessibility & contrast

On white

12.94
#1E2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1E2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2187
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2187#FFFFFF#000000##FFFFFF
##1E21871.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1e2187;
/* rgb */ color: rgb(30, 33, 135);
/* oklch */ color: oklch(33.0% 0.164 271.7);
Tailwind
colors: {
  custom: {
    50: '#6d5dab',
    500: '#1e2187',
    950: '#000000',
  },
}
SCSS
$custom: #1e2187;
$custom-light: #6d5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2187",
  "rgb": {
    "r": 30,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 238.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32954,
    "c": 0.1639,
    "h": 271.7
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#1E2187
secondary
#B9B648
accent
#E241E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E2187

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

Preview Lab → · Contrast checker → · Palette generator →

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