#1D17B4#1D17B4

#1D17B4 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.226 H 269.2°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#1D17B4
RGBrgb(29, 23, 180)
HSLhsl(242, 77%, 40%)
HSVhsv(242, 87%, 71%)
CMYKcmyk(83.9%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.22, 54.94, -77.96)
CIE-LCHlch(24.22, 95.37, 305.18°)
OKLaboklab(37.11% -0.0032 -0.2255)
OKLCHoklch(37.11% 0.226 269.2)
XYZxyz(9.0485, 4.1682, 43.4988)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D17B4 #AEB417
analogous
#1760B4 #1D17B4 #6C17B4
triadic
#1D17B4 #B41D17 #17B41D
tetradic
#1D17B4 #B41760 #AEB417 #17B46C
square
#1D17B4 #B41760 #AEB417 #17B46C
split-complementary
#1D17B4 #B46C17 #60B417
monochromatic
#0C0947 #14107E #1D17B4 #2C25E3 #615BEA

Accessibility & contrast

On white

11.45
#1D17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1D17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D17B4
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D17B4#FFFFFF#000000##FFFFFF
##1D17B41.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041B8
Deuteranopia (green-blind)
#0031B2
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1d17b4;
/* rgb */ color: rgb(29, 23, 180);
/* oklch */ color: oklch(37.1% 0.226 269.2);
Tailwind
colors: {
  custom: {
    50: '#795bcc',
    500: '#1d17b4',
    950: '#000000',
  },
}
SCSS
$custom: #1d17b4;
$custom-light: #795bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#1d17b4",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 242.293,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37113,
    "c": 0.22556,
    "h": 269.2
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#1D17B4
secondary
#C9CE59
accent
#F434ED
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #1D17B4

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

Preview Lab → · Contrast checker → · Palette generator →

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