#1D158D#1D158D

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

Color values

HEX#1D158D
RGBrgb(29, 21, 141)
HSLhsl(244, 74%, 32%)
HSVhsv(244, 85%, 55%)
CMYKcmyk(79.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(18.89, 43.97, -63.01)
CIE-LCHlch(18.89, 76.84, 304.91°)
OKLaboklab(32.02% 0.0067 -0.1823)
OKLCHoklch(32.02% 0.182 272.1)
XYZxyz(5.5810, 2.7200, 25.4250)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158D #858D15
analogous
#15498D #1D158D #59158D
triadic
#1D158D #8D1D15 #158D1D
tetradic
#1D158D #8D1549 #858D15 #158D59
square
#1D158D #8D1549 #858D15 #158D59
split-complementary
#1D158D #8D5915 #498D15
monochromatic
#070522 #120D58 #1D158D #281DC2 #463BE2

Accessibility & contrast

On white

13.60
#1D158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D158D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158D#FFFFFF#000000##FFFFFF
##1D158D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00288B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d158d;
/* rgb */ color: rgb(29, 21, 141);
/* oklch */ color: oklch(32.0% 0.182 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f57b0',
    500: '#1d158d',
    950: '#000000',
  },
}
SCSS
$custom: #1d158d;
$custom-light: #6f57b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158d",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 244,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32021,
    "c": 0.18241,
    "h": 272.1
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#1D158D
secondary
#B8C13D
accent
#F137E4
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D158D

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

Preview Lab → · Contrast checker → · Palette generator →

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