#1E2887#1E2887

#1E2887 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.156 H 270.5°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#1E2887
RGBrgb(30, 40, 135)
HSLhsl(234, 64%, 32%)
HSVhsv(234, 78%, 53%)
CMYKcmyk(77.8%, 70.4%, 0%, 47.1%)
CIE-LABlab(22.10, 31.11, -53.95)
CIE-LCHlch(22.10, 62.27, 299.97°)
OKLaboklab(34.11% 0.0013 -0.1561)
OKLCHoklch(34.11% 0.156 270.5)
XYZxyz(5.6659, 3.5423, 23.3021)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2887 #877D1E
analogous
#1E5C87 #1E2887 #491E87
triadic
#1E2887 #871E28 #28871E
tetradic
#1E2887 #871E5C #877D1E #1E8749
square
#1E2887 #871E5C #877D1E #1E8749
split-complementary
#1E2887 #87491E #5C871E
monochromatic
#080A23 #131955 #1E2887 #2937B9 #4956D7

Accessibility & contrast

On white

12.29
#1E2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1E2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2887
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2887#FFFFFF#000000##FFFFFF
##1E28871.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e2887;
/* rgb */ color: rgb(30, 40, 135);
/* oklch */ color: oklch(34.1% 0.156 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c62ab',
    500: '#1e2887',
    950: '#000000',
  },
}
SCSS
$custom: #1e2887;
$custom-light: #6c62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2887",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 234.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34109,
    "c": 0.15613,
    "h": 270.5
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#1E2887
secondary
#B9AE48
accent
#D741E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1E2887

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

Preview Lab → · Contrast checker → · Palette generator →

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