#1D158B#1D158B

#1D158B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.180 H 272.3°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1D158B
RGBrgb(29, 21, 139)
HSLhsl(244, 74%, 31%)
HSVhsv(244, 85%, 55%)
CMYKcmyk(79.1%, 84.9%, 0%, 45.5%)
CIE-LABlab(18.63, 43.34, -62.18)
CIE-LCHlch(18.63, 75.79, 304.87°)
OKLaboklab(31.77% 0.0072 -0.1799)
OKLCHoklch(31.77% 0.18 272.3)
XYZxyz(5.4335, 2.6610, 24.6484)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D158B #838B15
analogous
#15488B #1D158B #58158B
triadic
#1D158B #8B1D15 #158B1D
tetradic
#1D158B #8B1548 #838B15 #158B58
square
#1D158B #8B1548 #838B15 #158B58
split-complementary
#1D158B #8B5815 #488B15
monochromatic
#070521 #120D56 #1D158B #281DC0 #4539E1

Accessibility & contrast

On white

13.70
#1D158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D158B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D158B#FFFFFF#000000##FFFFFF
##1D158B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d158b;
/* rgb */ color: rgb(29, 21, 139);
/* oklch */ color: oklch(31.8% 0.180 272.3);
Tailwind
colors: {
  custom: {
    50: '#6f57ae',
    500: '#1d158b',
    950: '#000000',
  },
}
SCSS
$custom: #1d158b;
$custom-light: #6f57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d158b",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 244.068,
    "s": 73.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31773,
    "c": 0.18003,
    "h": 272.3
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#1D158B
secondary
#B6BF3D
accent
#F037E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D158B

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

Preview Lab → · Contrast checker → · Palette generator →

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