#1D158E#1D158E

#1D158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.184 H 272.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#1D158E
RGBrgb(29, 21, 142)
HSLhsl(244, 74%, 32%)
HSVhsv(244, 85%, 56%)
CMYKcmyk(79.6%, 85.2%, 0%, 44.3%)
CIE-LABlab(19.01, 44.28, -63.42)
CIE-LCHlch(19.01, 77.35, 304.92°)
OKLaboklab(32.15% 0.0064 -0.1835)
OKLCHoklch(32.15% 0.184 272)
XYZxyz(5.6557, 2.7499, 25.8187)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158E #868E15
analogous
#154A8E #1D158E #5A158E
triadic
#1D158E #8E1D15 #158E1D
tetradic
#1D158E #8E154A #868E15 #158E5A
square
#1D158E #8E154A #868E15 #158E5A
split-complementary
#1D158E #8E5A15 #4A8E15
monochromatic
#070523 #120D59 #1D158E #281DC3 #463BE2

Accessibility & contrast

On white

13.55
#1D158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D158E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D158E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158E#FFFFFF#000000##FFFFFF
##1D158E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d158e;
/* rgb */ color: rgb(29, 21, 142);
/* oklch */ color: oklch(32.1% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1d158e',
    950: '#000000',
  },
}
SCSS
$custom: #1d158e;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158e",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 243.967,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32146,
    "c": 0.1836,
    "h": 272
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#1D158E
secondary
#B9C23D
accent
#F137E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D158E

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

Preview Lab → · Contrast checker → · Palette generator →

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