#1E1171#1E1171

#1E1171 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.151 H 276.6°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#1E1171
RGBrgb(30, 17, 113)
HSLhsl(248, 74%, 25%)
HSVhsv(248, 85%, 44%)
CMYKcmyk(73.5%, 85%, 0%, 55.7%)
CIE-LABlab(14.78, 37.01, -51.99)
CIE-LCHlch(14.78, 63.82, 305.44°)
OKLaboklab(28.19% 0.0174 -0.1502)
OKLCHoklch(28.19% 0.151 276.6)
XYZxyz(3.7155, 1.8688, 15.7845)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1171 #647111
analogous
#113471 #1E1171 #4E1171
triadic
#1E1171 #711E11 #11711E
tetradic
#1E1171 #711134 #647111 #11714E
square
#1E1171 #711134 #647111 #11714E
split-complementary
#1E1171 #714E11 #347111
monochromatic
#07041B #10093C #1E1171 #2C19A6 #3A21DB

Accessibility & contrast

On white

15.29
#1E1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1E1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1171
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1171#FFFFFF#000000##FFFFFF
##1E11711.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1e1171;
/* rgb */ color: rgb(30, 17, 113);
/* oklch */ color: oklch(28.2% 0.151 276.6);
Tailwind
colors: {
  custom: {
    50: '#69529b',
    500: '#1e1171',
    950: '#000000',
  },
}
SCSS
$custom: #1e1171;
$custom-light: #69529b;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1171",
  "rgb": {
    "r": 30,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 248.125,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2819,
    "c": 0.15126,
    "h": 276.6
  },
  "luminance": 0.01869
}

Semantic roles & 50–950 ramp

primary
#1E1171
secondary
#99A836
accent
#F137D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1E1171

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

Preview Lab → · Contrast checker → · Palette generator →

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