#1E157B#1E157B

#1E157B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.160 H 274.6°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1E157B
RGBrgb(30, 21, 123)
HSLhsl(245, 71%, 28%)
HSVhsv(245, 83%, 48%)
CMYKcmyk(75.6%, 82.9%, 0%, 51.8%)
CIE-LABlab(16.71, 38.24, -55.24)
CIE-LCHlch(16.71, 67.19, 304.69°)
OKLaboklab(29.88% 0.0129 -0.1598)
OKLCHoklch(29.88% 0.16 274.6)
XYZxyz(4.3776, 2.2420, 18.9371)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E157B #727B15
analogous
#153F7B #1E157B #51157B
triadic
#1E157B #7B1E15 #157B1E
tetradic
#1E157B #7B153F #727B15 #157B51
square
#1E157B #7B153F #727B15 #157B51
split-complementary
#1E157B #7B5115 #3F7B15
monochromatic
#06041A #110C47 #1E157B #2B1EAF #3E2FDB

Accessibility & contrast

On white

14.50
#1E157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1E157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E157B
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E157B#FFFFFF#000000##FFFFFF
##1E157B1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1e157b;
/* rgb */ color: rgb(30, 21, 123);
/* oklch */ color: oklch(29.9% 0.160 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b55a2',
    500: '#1e157b',
    950: '#000000',
  },
}
SCSS
$custom: #1e157b;
$custom-light: #6b55a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e157b",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 245.294,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29884,
    "c": 0.16028,
    "h": 274.6
  },
  "luminance": 0.02242
}

Semantic roles & 50–950 ramp

primary
#1E157B
secondary
#A6B03B
accent
#EE3ADE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E157B

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

Preview Lab → · Contrast checker → · Palette generator →

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