#1D158A#1D158A

#1D158A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.179 H 272.4°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#1D158A
RGBrgb(29, 21, 138)
HSLhsl(244, 74%, 31%)
HSVhsv(244, 85%, 54%)
CMYKcmyk(79%, 84.8%, 0%, 45.9%)
CIE-LABlab(18.50, 43.02, -61.77)
CIE-LCHlch(18.50, 75.27, 304.86°)
OKLaboklab(31.65% 0.0075 -0.1787)
OKLCHoklch(31.65% 0.179 272.4)
XYZxyz(5.3608, 2.6319, 24.2653)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158A #828A15
analogous
#15478A #1D158A #57158A
triadic
#1D158A #8A1D15 #158A1D
tetradic
#1D158A #8A1547 #828A15 #158A57
square
#1D158A #8A1547 #828A15 #158A57
split-complementary
#1D158A #8A5715 #478A15
monochromatic
#070520 #120D55 #1D158A #281DBF #4439E1

Accessibility & contrast

On white

13.76
#1D158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D158A
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158A#FFFFFF#000000##FFFFFF
##1D158A1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d158a;
/* rgb */ color: rgb(29, 21, 138);
/* oklch */ color: oklch(31.6% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#6f57ad',
    500: '#1d158a',
    950: '#000000',
  },
}
SCSS
$custom: #1d158a;
$custom-light: #6f57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158a",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 244.103,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31649,
    "c": 0.17885,
    "h": 272.4
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#1D158A
secondary
#B5BE3D
accent
#F038E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D158A

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

Preview Lab → · Contrast checker → · Palette generator →

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