#1E157D#1E157D

#1E157D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.163 H 274.3°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#1E157D
RGBrgb(30, 21, 125)
HSLhsl(245, 71%, 29%)
HSVhsv(245, 83%, 49%)
CMYKcmyk(76%, 83.2%, 0%, 51%)
CIE-LABlab(16.95, 38.89, -56.12)
CIE-LCHlch(16.95, 68.28, 304.73°)
OKLaboklab(30.13% 0.0123 -0.1623)
OKLCHoklch(30.13% 0.163 274.3)
XYZxyz(4.5040, 2.2926, 19.6032)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E157D #747D15
analogous
#15407D #1E157D #52157D
triadic
#1E157D #7D1E15 #157D1E
tetradic
#1E157D #7D1540 #747D15 #157D52
square
#1E157D #7D1540 #747D15 #157D52
split-complementary
#1E157D #7D5215 #407D15
monochromatic
#06041A #110C49 #1E157D #2B1EB1 #3F30DC

Accessibility & contrast

On white

14.40
#1E157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1E157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E157D
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E157D#FFFFFF#000000##FFFFFF
##1E157D1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1e157d;
/* rgb */ color: rgb(30, 21, 125);
/* oklch */ color: oklch(30.1% 0.163 274.3);
Tailwind
colors: {
  custom: {
    50: '#6b56a4',
    500: '#1e157d',
    950: '#000000',
  },
}
SCSS
$custom: #1e157d;
$custom-light: #6b56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e157d",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 245.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30125,
    "c": 0.16277,
    "h": 274.3
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1E157D

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

Preview Lab → · Contrast checker → · Palette generator →

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