#1E1871#1E1871

#1E1871 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.145 H 275.5°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#1E1871
RGBrgb(30, 24, 113)
HSLhsl(244, 65%, 27%)
HSVhsv(244, 79%, 44%)
CMYKcmyk(73.5%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.11, 33.18, -49.79)
CIE-LCHlch(16.11, 59.84, 303.68°)
OKLaboklab(29.12% 0.014 -0.144)
OKLCHoklch(29.12% 0.145 275.5)
XYZxyz(3.8417, 2.1212, 15.8266)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1871 #6B7118
analogous
#183F71 #1E1871 #4B1871
triadic
#1E1871 #711E18 #18711E
tetradic
#1E1871 #71183F #6B7118 #18714B
square
#1E1871 #71183F #6B7118 #18714B
split-complementary
#1E1871 #714B18 #3F7118
monochromatic
#070519 #110D3F #1E1871 #2B23A3 #3B30D3

Accessibility & contrast

On white

14.74
#1E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1E1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1871
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1871#FFFFFF#000000##FFFFFF
##1E18711.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1e1871;
/* rgb */ color: rgb(30, 24, 113);
/* oklch */ color: oklch(29.1% 0.145 275.5);
Tailwind
colors: {
  custom: {
    50: '#68569b',
    500: '#1e1871',
    950: '#000000',
  },
}
SCSS
$custom: #1e1871;
$custom-light: #68569b;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1871",
  "rgb": {
    "r": 30,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 244.045,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29118,
    "c": 0.14464,
    "h": 275.5
  },
  "luminance": 0.02122
}

Semantic roles & 50–950 ramp

primary
#1E1871
secondary
#9FA63E
accent
#E840DD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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