#1E178C#1E178C

#1E178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.179 H 272.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1E178C
RGBrgb(30, 23, 140)
HSLhsl(244, 72%, 32%)
HSVhsv(244, 84%, 55%)
CMYKcmyk(78.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.15, 42.76, -61.95)
CIE-LCHlch(19.15, 75.27, 304.61°)
OKLaboklab(32.18% 0.0077 -0.1792)
OKLCHoklch(32.18% 0.179 272.4)
XYZxyz(5.5739, 2.7817, 25.0490)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E178C #858C17
analogous
#174B8C #1E178C #59178C
triadic
#1E178C #8C1E17 #178C1E
tetradic
#1E178C #8C174B #858C17 #178C59
square
#1E178C #8C174B #858C17 #178C59
split-complementary
#1E178C #8C5917 #4B8C17
monochromatic
#070623 #130E57 #1E178C #2920C1 #483EDF

Accessibility & contrast

On white

13.49
#1E178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1E178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E178C
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E178C#FFFFFF#000000##FFFFFF
##1E178C1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e178c;
/* rgb */ color: rgb(30, 23, 140);
/* oklch */ color: oklch(32.2% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f58af',
    500: '#1e178c',
    950: '#000000',
  },
}
SCSS
$custom: #1e178c;
$custom-light: #6f58af;
$custom-dark: #000000;
JSON
{
  "hex": "#1e178c",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 243.59,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32183,
    "c": 0.1794,
    "h": 272.4
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#1E178C
secondary
#B8BF3F
accent
#EF39E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1E178C

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

Preview Lab → · Contrast checker → · Palette generator →

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