#1E3787#1E3787

#1E3787 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.0% C 0.137 H 266.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#1E3787
RGBrgb(30, 55, 135)
HSLhsl(226, 64%, 32%)
HSVhsv(226, 78%, 53%)
CMYKcmyk(77.8%, 59.3%, 0%, 47.1%)
CIE-LABlab(26.03, 20.90, -47.51)
CIE-LCHlch(26.03, 51.90, 293.74°)
OKLaboklab(37.01% -0.0086 -0.1371)
OKLCHoklch(37.01% 0.137 266.4)
XYZxyz(6.2733, 4.7570, 23.5045)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E3787 #876E1E
analogous
#1E6C87 #1E3787 #391E87
triadic
#1E3787 #871E37 #37871E
tetradic
#1E3787 #871E6C #876E1E #1E8739
square
#1E3787 #871E6C #876E1E #1E8739
split-complementary
#1E3787 #87391E #6C871E
monochromatic
#080E23 #132355 #1E3787 #294BB9 #496BD7

Accessibility & contrast

On white

10.76
#1E3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1E3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E3787
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E3787#FFFFFF#000000##FFFFFF
##1E37871.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1e3787;
/* rgb */ color: rgb(30, 55, 135);
/* oklch */ color: oklch(37.0% 0.137 266.4);
Tailwind
colors: {
  custom: {
    50: '#6b6dab',
    500: '#1e3787',
    950: '#000000',
  },
}
SCSS
$custom: #1e3787;
$custom-light: #6b6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e3787",
  "rgb": {
    "r": 30,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 225.714,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37011,
    "c": 0.13739,
    "h": 266.4
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#1E3787
secondary
#B99E48
accent
#BF41E7
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1E3787

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

Preview Lab → · Contrast checker → · Palette generator →

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