#1E3797#1E3797

#1E3797 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.160 H 267.0°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#1E3797
RGBrgb(30, 55, 151)
HSLhsl(228, 67%, 35%)
HSVhsv(228, 80%, 59%)
CMYKcmyk(80.1%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.41, 27.20, -55.13)
CIE-LCHlch(27.41, 61.47, 296.26°)
OKLaboklab(38.47% -0.0084 -0.1595)
OKLCHoklch(38.47% 0.16 267)
XYZxyz(7.4856, 5.2419, 29.8894)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E3797 #977E1E
analogous
#1E7497 #1E3797 #411E97
triadic
#1E3797 #971E37 #37971E
tetradic
#1E3797 #971E74 #977E1E #1E9741
square
#1E3797 #971E74 #977E1E #1E9741
split-complementary
#1E3797 #97411E #74971E
monochromatic
#0A1231 #142464 #1E3797 #284ACA #536FDD

Accessibility & contrast

On white

10.25
#1E3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1E3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E3797
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E3797#FFFFFF#000000##FFFFFF
##1E37971.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1e3797;
/* rgb */ color: rgb(30, 55, 151);
/* oklch */ color: oklch(38.5% 0.160 267.0);
Tailwind
colors: {
  custom: {
    50: '#6f6db6',
    500: '#1e3797',
    950: '#000000',
  },
}
SCSS
$custom: #1e3797;
$custom-light: #6f6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1e3797",
  "rgb": {
    "r": 30,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 227.603,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3847,
    "c": 0.1597,
    "h": 267
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#1E3797
secondary
#C0A951
accent
#C63EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1E3797

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

Preview Lab → · Contrast checker → · Palette generator →

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