#1E2871#1E2871

#1E2871 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.125 H 271.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#1E2871
RGBrgb(30, 40, 113)
HSLhsl(233, 58%, 28%)
HSVhsv(233, 73%, 44%)
CMYKcmyk(73.5%, 64.6%, 0%, 55.7%)
CIE-LABlab(19.99, 22.69, -43.43)
CIE-LCHlch(19.99, 49.00, 297.58°)
OKLaboklab(31.92% 0.0029 -0.1253)
OKLCHoklch(31.92% 0.125 271.3)
XYZxyz(4.2738, 2.9854, 15.9706)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2871 #71671E
analogous
#1E5171 #1E2871 #3D1E71
triadic
#1E2871 #711E28 #28711E
tetradic
#1E2871 #711E51 #71671E #1E713D
square
#1E2871 #711E51 #71671E #1E713D
split-complementary
#1E2871 #713D1E #51711E
monochromatic
#060918 #111741 #1E2871 #2B39A1 #3E4FCC

Accessibility & contrast

On white

13.15
#1E2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1E2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2871
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2871#FFFFFF#000000##FFFFFF
##1E28711.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e2871;
/* rgb */ color: rgb(30, 40, 113);
/* oklch */ color: oklch(31.9% 0.125 271.3);
Tailwind
colors: {
  custom: {
    50: '#66619a',
    500: '#1e2871',
    950: '#000000',
  },
}
SCSS
$custom: #1e2871;
$custom-light: #66619a;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2871",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 232.771,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31919,
    "c": 0.12538,
    "h": 271.3
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#1E2871
secondary
#A59A46
accent
#CF47E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1E2871

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

Preview Lab → · Contrast checker → · Palette generator →

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