#1E4797#1E4797

#1E4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.139 H 261.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#1E4797
RGBrgb(30, 71, 151)
HSLhsl(220, 67%, 35%)
HSVhsv(220, 80%, 59%)
CMYKcmyk(80.1%, 53%, 0%, 40.8%)
CIE-LABlab(31.84, 16.25, -47.92)
CIE-LCHlch(31.84, 50.60, 288.73°)
OKLaboklab(41.8% -0.0195 -0.138)
OKLCHoklch(41.8% 0.139 261.9)
XYZxyz(8.3726, 7.0159, 30.1851)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E4797 #976E1E
analogous
#1E8497 #1E4797 #311E97
triadic
#1E4797 #971E47 #47971E
tetradic
#1E4797 #971E84 #976E1E #1E9731
square
#1E4797 #971E84 #976E1E #1E9731
split-complementary
#1E4797 #97311E #84971E
monochromatic
#0A1731 #142F64 #1E4797 #285FCA #5381DD

Accessibility & contrast

On white

8.74
#1E4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1E4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E4797
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E4797#FFFFFF#000000##FFFFFF
##1E47971.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F519A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1e4797;
/* rgb */ color: rgb(30, 71, 151);
/* oklch */ color: oklch(41.8% 0.139 261.9);
Tailwind
colors: {
  custom: {
    50: '#6e79b6',
    500: '#1e4797',
    950: '#000000',
  },
}
SCSS
$custom: #1e4797;
$custom-light: #6e79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1e4797",
  "rgb": {
    "r": 30,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 219.669,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41799,
    "c": 0.13942,
    "h": 261.9
  },
  "luminance": 0.07017
}

Semantic roles & 50–950 ramp

primary
#1E4797
secondary
#C09A51
accent
#B03EEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1E4797

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

Preview Lab → · Contrast checker → · Palette generator →

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