#1E158A#1E158A

#1E158A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.179 H 272.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#1E158A
RGBrgb(30, 21, 138)
HSLhsl(245, 74%, 31%)
HSVhsv(245, 85%, 54%)
CMYKcmyk(78.3%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.57, 43.08, -61.66)
CIE-LCHlch(18.57, 75.22, 304.94°)
OKLaboklab(31.71% 0.0088 -0.1783)
OKLCHoklch(31.71% 0.179 272.8)
XYZxyz(5.3895, 2.6468, 24.2667)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E158A #818A15
analogous
#15468A #1E158A #58158A
triadic
#1E158A #8A1E15 #158A1E
tetradic
#1E158A #8A1546 #818A15 #158A58
square
#1E158A #8A1546 #818A15 #158A58
split-complementary
#1E158A #8A5815 #468A15
monochromatic
#070520 #120D55 #1E158A #2A1DBF #4639E1

Accessibility & contrast

On white

13.73
#1E158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1E158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E158A
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E158A#FFFFFF#000000##FFFFFF
##1E158A1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1e158a;
/* rgb */ color: rgb(30, 21, 138);
/* oklch */ color: oklch(31.7% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#1e158a',
    950: '#000000',
  },
}
SCSS
$custom: #1e158a;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1e158a",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 244.615,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31711,
    "c": 0.17857,
    "h": 272.8
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#1E158A
secondary
#B4BE3D
accent
#F038E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1E158A

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

Preview Lab → · Contrast checker → · Palette generator →

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