#1E2987#1E2987

#1E2987 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.3% C 0.155 H 270.3°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1E2987
RGBrgb(30, 41, 135)
HSLhsl(234, 64%, 32%)
HSVhsv(234, 78%, 53%)
CMYKcmyk(77.8%, 69.6%, 0%, 47.1%)
CIE-LABlab(22.34, 30.45, -53.55)
CIE-LCHlch(22.34, 61.60, 299.63°)
OKLaboklab(34.29% 0.0008 -0.1549)
OKLCHoklch(34.29% 0.155 270.3)
XYZxyz(5.7000, 3.6105, 23.3135)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2987 #877C1E
analogous
#1E5E87 #1E2987 #471E87
triadic
#1E2987 #871E29 #29871E
tetradic
#1E2987 #871E5E #877C1E #1E8747
square
#1E2987 #871E5E #877C1E #1E8747
split-complementary
#1E2987 #87471E #5E871E
monochromatic
#080B23 #131A55 #1E2987 #2938B9 #4958D7

Accessibility & contrast

On white

12.19
#1E2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1E2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2987
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2987#FFFFFF#000000##FFFFFF
##1E29871.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1e2987;
/* rgb */ color: rgb(30, 41, 135);
/* oklch */ color: oklch(34.3% 0.155 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c63ab',
    500: '#1e2987',
    950: '#000000',
  },
}
SCSS
$custom: #1e2987;
$custom-light: #6c63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2987",
  "rgb": {
    "r": 30,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 233.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34286,
    "c": 0.15495,
    "h": 270.3
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#1E2987
secondary
#B9AD48
accent
#D541E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1E2987

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

Preview Lab → · Contrast checker → · Palette generator →

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