#1E2787#1E2787

#1E2787 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.157 H 270.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#1E2787
RGBrgb(30, 39, 135)
HSLhsl(235, 64%, 32%)
HSVhsv(235, 78%, 53%)
CMYKcmyk(77.8%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.86, 31.76, -54.34)
CIE-LCHlch(21.86, 62.94, 300.31°)
OKLaboklab(33.94% 0.0019 -0.1573)
OKLCHoklch(33.94% 0.157 270.7)
XYZxyz(5.6326, 3.4757, 23.2910)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2787 #877E1E
analogous
#1E5C87 #1E2787 #491E87
triadic
#1E2787 #871E27 #27871E
tetradic
#1E2787 #871E5C #877E1E #1E8749
square
#1E2787 #871E5C #877E1E #1E8749
split-complementary
#1E2787 #87491E #5C871E
monochromatic
#080A23 #131955 #1E2787 #2935B9 #4955D7

Accessibility & contrast

On white

12.39
#1E2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E2787
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2787#FFFFFF#000000##FFFFFF
##1E27871.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e2787;
/* rgb */ color: rgb(30, 39, 135);
/* oklch */ color: oklch(33.9% 0.157 270.7);
Tailwind
colors: {
  custom: {
    50: '#6c61ab',
    500: '#1e2787',
    950: '#000000',
  },
}
SCSS
$custom: #1e2787;
$custom-light: #6c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2787",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 234.857,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33936,
    "c": 0.15729,
    "h": 270.7
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#1E2787
secondary
#B9AF48
accent
#D841E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1E2787

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

Preview Lab → · Contrast checker → · Palette generator →

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