#1E158C#1E158C

#1E158C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.181 H 272.6°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#1E158C
RGBrgb(30, 21, 140)
HSLhsl(245, 74%, 32%)
HSVhsv(245, 85%, 55%)
CMYKcmyk(78.6%, 85%, 0%, 45.1%)
CIE-LABlab(18.82, 43.71, -62.49)
CIE-LCHlch(18.82, 76.26, 304.98°)
OKLaboklab(31.96% 0.0082 -0.1808)
OKLCHoklch(31.96% 0.181 272.6)
XYZxyz(5.5356, 2.7052, 25.0363)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E158C #838C15
analogous
#15488C #1E158C #5A158C
triadic
#1E158C #8C1E15 #158C1E
tetradic
#1E158C #8C1548 #838C15 #158C5A
square
#1E158C #8C1548 #838C15 #158C5A
split-complementary
#1E158C #8C5A15 #488C15
monochromatic
#070522 #130D57 #1E158C #291DC1 #473AE1

Accessibility & contrast

On white

13.63
#1E158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1E158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E158C
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E158C#FFFFFF#000000##FFFFFF
##1E158C1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e158c;
/* rgb */ color: rgb(30, 21, 140);
/* oklch */ color: oklch(32.0% 0.181 272.6);
Tailwind
colors: {
  custom: {
    50: '#6f57af',
    500: '#1e158c',
    950: '#000000',
  },
}
SCSS
$custom: #1e158c;
$custom-light: #6f57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1e158c",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 244.538,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.18095,
    "h": 272.6
  },
  "luminance": 0.02706
}

Semantic roles & 50–950 ramp

primary
#1E158C
secondary
#B6C03D
accent
#F137E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1E158C

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

Preview Lab → · Contrast checker → · Palette generator →

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