#1E178A#1E178A

#1E178A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.177 H 272.6°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1E178A
RGBrgb(30, 23, 138)
HSLhsl(244, 71%, 32%)
HSVhsv(244, 83%, 54%)
CMYKcmyk(78.3%, 83.3%, 0%, 45.9%)
CIE-LABlab(18.90, 42.12, -61.11)
CIE-LCHlch(18.90, 74.22, 304.57°)
OKLaboklab(31.94% 0.0082 -0.1768)
OKLCHoklch(31.94% 0.177 272.6)
XYZxyz(5.4277, 2.7232, 24.2794)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E178A #838A17
analogous
#174A8A #1E178A #58178A
triadic
#1E178A #8A1E17 #178A1E
tetradic
#1E178A #8A174A #838A17 #178A58
square
#1E178A #8A174A #838A17 #178A58
split-complementary
#1E178A #8A5817 #4A8A17
monochromatic
#070621 #130E56 #1E178A #2920BE #473DDF

Accessibility & contrast

On white

13.59
#1E178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1E178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E178A
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E178A#FFFFFF#000000##FFFFFF
##1E178A1.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e178a;
/* rgb */ color: rgb(30, 23, 138);
/* oklch */ color: oklch(31.9% 0.177 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f58ad',
    500: '#1e178a',
    950: '#000000',
  },
}
SCSS
$custom: #1e178a;
$custom-light: #6f58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1e178a",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 243.652,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31939,
    "c": 0.17699,
    "h": 272.6
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#1E178A
secondary
#B6BE3F
accent
#EE3AE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1E178A

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

Preview Lab → · Contrast checker → · Palette generator →

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