#1E2788#1E2788

#1E2788 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.159 H 270.6°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1E2788
RGBrgb(30, 39, 136)
HSLhsl(235, 64%, 33%)
HSVhsv(235, 78%, 53%)
CMYKcmyk(77.9%, 71.3%, 0%, 46.7%)
CIE-LABlab(21.96, 32.13, -54.80)
CIE-LCHlch(21.96, 63.53, 300.39°)
OKLaboklab(34.04% 0.0018 -0.1586)
OKLCHoklch(34.04% 0.159 270.6)
XYZxyz(5.7034, 3.5040, 23.6635)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2788 #887F1E
analogous
#1E5C88 #1E2788 #4A1E88
triadic
#1E2788 #881E27 #27881E
tetradic
#1E2788 #881E5C #887F1E #1E884A
square
#1E2788 #881E5C #887F1E #1E884A
split-complementary
#1E2788 #884A1E #5C881E
monochromatic
#080A24 #131956 #1E2788 #2935BA #4955D7

Accessibility & contrast

On white

12.35
#1E2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1E2788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2788
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2788#FFFFFF#000000##FFFFFF
##1E27881.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1e2788;
/* rgb */ color: rgb(30, 39, 136);
/* oklch */ color: oklch(34.0% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#6d61ac',
    500: '#1e2788',
    950: '#000000',
  },
}
SCSS
$custom: #1e2788;
$custom-light: #6d61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2788",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 234.906,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34041,
    "c": 0.15862,
    "h": 270.6
  },
  "luminance": 0.03505
}

Semantic roles & 50–950 ramp

primary
#1E2788
secondary
#B9B049
accent
#D941E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1E2788

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

Preview Lab → · Contrast checker → · Palette generator →

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