#1E4798#1E4798

#1E4798 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.9% C 0.141 H 262.1°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#1E4798
RGBrgb(30, 71, 152)
HSLhsl(220, 67%, 36%)
HSVhsv(220, 80%, 60%)
CMYKcmyk(80.3%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.92, 16.65, -48.41)
CIE-LCHlch(31.92, 51.19, 288.98°)
OKLaboklab(41.88% -0.0194 -0.1395)
OKLCHoklch(41.88% 0.141 262.1)
XYZxyz(8.4541, 7.0485, 30.6146)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E4798 #986F1E
analogous
#1E8498 #1E4798 #321E98
triadic
#1E4798 #981E47 #47981E
tetradic
#1E4798 #981E84 #986F1E #1E9832
square
#1E4798 #981E84 #986F1E #1E9832
split-complementary
#1E4798 #98321E #84981E
monochromatic
#0A1732 #142F65 #1E4798 #285FCB #5382DD

Accessibility & contrast

On white

8.71
#1E4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1E4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E4798
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E4798#FFFFFF#000000##FFFFFF
##1E47981.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1e4798;
/* rgb */ color: rgb(30, 71, 152);
/* oklch */ color: oklch(41.9% 0.141 262.1);
Tailwind
colors: {
  custom: {
    50: '#6e79b7',
    500: '#1e4798',
    950: '#000000',
  },
}
SCSS
$custom: #1e4798;
$custom-light: #6e79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1e4798",
  "rgb": {
    "r": 30,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 219.836,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.14082,
    "h": 262.1
  },
  "luminance": 0.07049
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E4798

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

Preview Lab → · Contrast checker → · Palette generator →

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