#1D158F#1D158F

#1D158F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.185 H 271.9°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1D158F
RGBrgb(29, 21, 143)
HSLhsl(244, 74%, 32%)
HSVhsv(244, 85%, 56%)
CMYKcmyk(79.7%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.14, 44.60, -63.83)
CIE-LCHlch(19.14, 77.87, 304.94°)
OKLaboklab(32.27% 0.0061 -0.1847)
OKLCHoklch(32.27% 0.185 271.9)
XYZxyz(5.7311, 2.7801, 26.2158)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158F #878F15
analogous
#154A8F #1D158F #5A158F
triadic
#1D158F #8F1D15 #158F1D
tetradic
#1D158F #8F154A #878F15 #158F5A
square
#1D158F #8F154A #878F15 #158F5A
split-complementary
#1D158F #8F5A15 #4A8F15
monochromatic
#070524 #120D5A #1D158F #281DC4 #473CE2

Accessibility & contrast

On white

13.49
#1D158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D158F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158F#FFFFFF#000000##FFFFFF
##1D158F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d158f;
/* rgb */ color: rgb(29, 21, 143);
/* oklch */ color: oklch(32.3% 0.185 271.9);
Tailwind
colors: {
  custom: {
    50: '#7057b1',
    500: '#1d158f',
    950: '#000000',
  },
}
SCSS
$custom: #1d158f;
$custom-light: #7057b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158f",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 243.934,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3227,
    "c": 0.18478,
    "h": 271.9
  },
  "luminance": 0.02781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D158F

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

Preview Lab → · Contrast checker → · Palette generator →

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