#1E2797#1E2797

#1E2797 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.178 H 269.9°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#1E2797
RGBrgb(30, 39, 151)
HSLhsl(236, 67%, 35%)
HSVhsv(236, 80%, 59%)
CMYKcmyk(80.1%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.54, 37.59, -61.50)
CIE-LCHlch(23.54, 72.08, 301.43°)
OKLaboklab(35.65% -0.0002 -0.1781)
OKLCHoklch(35.65% 0.178 269.9)
XYZxyz(6.8449, 3.9606, 29.6759)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2797 #978E1E
analogous
#1E6397 #1E2797 #511E97
triadic
#1E2797 #971E27 #27971E
tetradic
#1E2797 #971E63 #978E1E #1E9751
square
#1E2797 #971E63 #978E1E #1E9751
split-complementary
#1E2797 #97511E #63971E
monochromatic
#0A0D31 #141A64 #1E2797 #2834CA #535DDD

Accessibility & contrast

On white

11.72
#1E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1E2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2797
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2797#FFFFFF#000000##FFFFFF
##1E27971.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1e2797;
/* rgb */ color: rgb(30, 39, 151);
/* oklch */ color: oklch(35.7% 0.178 269.9);
Tailwind
colors: {
  custom: {
    50: '#7162b7',
    500: '#1e2797',
    950: '#000000',
  },
}
SCSS
$custom: #1e2797;
$custom-light: #7162b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2797",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 235.537,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35651,
    "c": 0.17812,
    "h": 269.9
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#1E2797
secondary
#C0B851
accent
#DD3EEA
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1E2797

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

Preview Lab → · Contrast checker → · Palette generator →

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