#1E2771#1E2771

#1E2771 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.127 H 271.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#1E2771
RGBrgb(30, 39, 113)
HSLhsl(233, 58%, 28%)
HSVhsv(233, 73%, 44%)
CMYKcmyk(73.5%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.72, 23.39, -43.87)
CIE-LCHlch(19.72, 49.72, 298.06°)
OKLaboklab(31.72% 0.0037 -0.1267)
OKLCHoklch(31.72% 0.127 271.7)
XYZxyz(4.2406, 2.9189, 15.9595)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2771 #71681E
analogous
#1E5071 #1E2771 #3E1E71
triadic
#1E2771 #711E27 #27711E
tetradic
#1E2771 #711E50 #71681E #1E713E
square
#1E2771 #711E50 #71681E #1E713E
split-complementary
#1E2771 #713E1E #50711E
monochromatic
#060818 #111641 #1E2771 #2B38A1 #3E4DCC

Accessibility & contrast

On white

13.26
#1E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2771
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2771#FFFFFF#000000##FFFFFF
##1E27711.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1e2771;
/* rgb */ color: rgb(30, 39, 113);
/* oklch */ color: oklch(31.7% 0.127 271.7);
Tailwind
colors: {
  custom: {
    50: '#67619b',
    500: '#1e2771',
    950: '#000000',
  },
}
SCSS
$custom: #1e2771;
$custom-light: #67619b;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2771",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 233.494,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.1267,
    "h": 271.7
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#1E2771
secondary
#A59B46
accent
#D047E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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