#1E3791#1E3791

#1E3791 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.9% C 0.151 H 266.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#1E3791
RGBrgb(30, 55, 145)
HSLhsl(227, 66%, 34%)
HSVhsv(227, 79%, 57%)
CMYKcmyk(79.3%, 62.1%, 0%, 43.1%)
CIE-LABlab(26.88, 24.85, -52.32)
CIE-LCHlch(26.88, 57.92, 295.41°)
OKLaboklab(37.91% -0.0084 -0.1512)
OKLCHoklch(37.91% 0.151 266.8)
XYZxyz(7.0107, 5.0519, 27.3882)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E3791 #91781E
analogous
#1E7091 #1E3791 #3F1E91
triadic
#1E3791 #911E37 #37911E
tetradic
#1E3791 #911E70 #91781E #1E913F
square
#1E3791 #911E70 #91781E #1E913F
split-complementary
#1E3791 #913F1E #70911E
monochromatic
#09112C #14245E #1E3791 #284AC4 #4F6DDB

Accessibility & contrast

On white

10.44
#1E3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1E3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E3791
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E3791#FFFFFF#000000##FFFFFF
##1E37911.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1e3791;
/* rgb */ color: rgb(30, 55, 145);
/* oklch */ color: oklch(37.9% 0.151 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d6db2',
    500: '#1e3791',
    950: '#000000',
  },
}
SCSS
$custom: #1e3791;
$custom-light: #6d6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e3791",
  "rgb": {
    "r": 30,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 226.957,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37912,
    "c": 0.15146,
    "h": 266.8
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#1E3791
secondary
#BDA54D
accent
#C43FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1E3791

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

Preview Lab → · Contrast checker → · Palette generator →

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