#1E157A#1E157A

#1E157A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.159 H 274.7°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#1E157A
RGBrgb(30, 21, 122)
HSLhsl(245, 71%, 28%)
HSVhsv(245, 83%, 48%)
CMYKcmyk(75.4%, 82.8%, 0%, 52.2%)
CIE-LABlab(16.59, 37.91, -54.80)
CIE-LCHlch(16.59, 66.64, 304.67°)
OKLaboklab(29.76% 0.0131 -0.1585)
OKLCHoklch(29.76% 0.159 274.7)
XYZxyz(4.3153, 2.2171, 18.6091)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E157A #717A15
analogous
#153E7A #1E157A #51157A
triadic
#1E157A #7A1E15 #157A1E
tetradic
#1E157A #7A153E #717A15 #157A51
square
#1E157A #7A153E #717A15 #157A51
split-complementary
#1E157A #7A5115 #3E7A15
monochromatic
#06041A #110C46 #1E157A #2B1EAE #3E2EDB

Accessibility & contrast

On white

14.55
#1E157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1E157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E157A
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E157A#FFFFFF#000000##FFFFFF
##1E157A1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1e157a;
/* rgb */ color: rgb(30, 21, 122);
/* oklch */ color: oklch(29.8% 0.159 274.7);
Tailwind
colors: {
  custom: {
    50: '#6b55a2',
    500: '#1e157a',
    950: '#000000',
  },
}
SCSS
$custom: #1e157a;
$custom-light: #6b55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e157a",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 245.347,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29764,
    "c": 0.15903,
    "h": 274.7
  },
  "luminance": 0.02217
}

Semantic roles & 50–950 ramp

primary
#1E157A
secondary
#A5AF3B
accent
#ED3ADD
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1E157A

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

Preview Lab → · Contrast checker → · Palette generator →

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