#1D158C#1D158C

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

Color values

HEX#1D158C
RGBrgb(29, 21, 140)
HSLhsl(244, 74%, 32%)
HSVhsv(244, 85%, 55%)
CMYKcmyk(79.3%, 85%, 0%, 45.1%)
CIE-LABlab(18.76, 43.65, -62.60)
CIE-LCHlch(18.76, 76.31, 304.89°)
OKLaboklab(31.9% 0.0069 -0.1811)
OKLCHoklch(31.9% 0.181 272.2)
XYZxyz(5.5069, 2.6904, 25.0349)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158C #848C15
analogous
#15498C #1D158C #59158C
triadic
#1D158C #8C1D15 #158C1D
tetradic
#1D158C #8C1549 #848C15 #158C59
square
#1D158C #8C1549 #848C15 #158C59
split-complementary
#1D158C #8C5915 #498C15
monochromatic
#070522 #120D57 #1D158C #281DC1 #453AE1

Accessibility & contrast

On white

13.65
#1D158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D158C
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158C#FFFFFF#000000##FFFFFF
##1D158C1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.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: #1d158c;
/* rgb */ color: rgb(29, 21, 140);
/* oklch */ color: oklch(31.9% 0.181 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f57af',
    500: '#1d158c',
    950: '#000000',
  },
}
SCSS
$custom: #1d158c;
$custom-light: #6f57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158c",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 244.034,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31897,
    "c": 0.18122,
    "h": 272.2
  },
  "luminance": 0.02691
}

Semantic roles & 50–950 ramp

primary
#1D158C
secondary
#B7C03D
accent
#F137E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D158C

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

Preview Lab → · Contrast checker → · Palette generator →

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