#1E4787#1E4787

#1E4787 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.6% C 0.117 H 259.2°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#1E4787
RGBrgb(30, 71, 135)
HSLhsl(217, 64%, 32%)
HSVhsv(217, 78%, 53%)
CMYKcmyk(77.8%, 47.4%, 0%, 47.1%)
CIE-LABlab(30.71, 9.81, -39.93)
CIE-LCHlch(30.71, 41.12, 283.81°)
OKLaboklab(40.57% -0.0219 -0.1145)
OKLCHoklch(40.57% 0.117 259.2)
XYZxyz(7.1602, 6.5310, 23.8002)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E4787 #875E1E
analogous
#1E7C87 #1E4787 #291E87
triadic
#1E4787 #871E47 #47871E
tetradic
#1E4787 #871E7C #875E1E #1E8729
square
#1E4787 #871E7C #875E1E #1E8729
split-complementary
#1E4787 #87291E #7C871E
monochromatic
#081223 #132D55 #1E4787 #2961B9 #4980D7

Accessibility & contrast

On white

9.11
#1E4787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#1E4787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E4787
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E4787#FFFFFF#000000##FFFFFF
##1E47871.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D89
Deuteranopia (green-blind)
#0C4486
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1e4787;
/* rgb */ color: rgb(30, 71, 135);
/* oklch */ color: oklch(40.6% 0.117 259.2);
Tailwind
colors: {
  custom: {
    50: '#6a79aa',
    500: '#1e4787',
    950: '#000000',
  },
}
SCSS
$custom: #1e4787;
$custom-light: #6a79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1e4787",
  "rgb": {
    "r": 30,
    "g": 71,
    "b": 135
  },
  "hsl": {
    "h": 216.571,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40573,
    "c": 0.11662,
    "h": 259.2
  },
  "luminance": 0.06532
}

Semantic roles & 50–950 ramp

primary
#1E4787
secondary
#B98D48
accent
#A641E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1E4787

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

Preview Lab → · Contrast checker → · Palette generator →

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