#1E178F#1E178F

#1E178F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.183 H 272.2°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#1E178F
RGBrgb(30, 23, 143)
HSLhsl(244, 72%, 33%)
HSVhsv(244, 84%, 56%)
CMYKcmyk(79%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.52, 43.72, -63.20)
CIE-LCHlch(19.52, 76.85, 304.67°)
OKLaboklab(32.55% 0.0069 -0.1829)
OKLCHoklch(32.55% 0.183 272.2)
XYZxyz(5.7981, 2.8713, 26.2299)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E178F #888F17
analogous
#174C8F #1E178F #5A178F
triadic
#1E178F #8F1E17 #178F1E
tetradic
#1E178F #8F174C #888F17 #178F5A
square
#1E178F #8F174C #888F17 #178F5A
split-complementary
#1E178F #8F5A17 #4C8F17
monochromatic
#080626 #130F5A #1E178F #291FC4 #4940E0

Accessibility & contrast

On white

13.34
#1E178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1E178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E178F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E178F#FFFFFF#000000##FFFFFF
##1E178F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1e178f;
/* rgb */ color: rgb(30, 23, 143);
/* oklch */ color: oklch(32.5% 0.183 272.2);
Tailwind
colors: {
  custom: {
    50: '#7058b1',
    500: '#1e178f',
    950: '#000000',
  },
}
SCSS
$custom: #1e178f;
$custom-light: #7058b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e178f",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 243.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32549,
    "c": 0.183,
    "h": 272.2
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#1E178F
secondary
#B9C141
accent
#EF39E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1E178F

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

Preview Lab → · Contrast checker → · Palette generator →

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