#1D166D#1D166D

#1D166D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.142 H 275.9°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#1D166D
RGBrgb(29, 22, 109)
HSLhsl(245, 66%, 26%)
HSVhsv(245, 80%, 43%)
CMYKcmyk(73.4%, 79.8%, 0%, 57.3%)
CIE-LABlab(15.16, 32.86, -48.76)
CIE-LCHlch(15.16, 58.80, 303.98°)
OKLaboklab(28.29% 0.0146 -0.141)
OKLCHoklch(28.29% 0.142 275.9)
XYZxyz(3.5530, 1.9388, 14.6520)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D166D #666D16
analogous
#163A6D #1D166D #48166D
triadic
#1D166D #6D1D16 #166D1D
tetradic
#1D166D #6D163A #666D16 #166D48
square
#1D166D #6D163A #666D16 #166D48
split-complementary
#1D166D #6D4816 #3A6D16
monochromatic
#070519 #0F0C3A #1D166D #2B20A0 #382BD3

Accessibility & contrast

On white

15.13
#1D166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#1D166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D166D
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D166D#FFFFFF#000000##FFFFFF
##1D166D1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d166d;
/* rgb */ color: rgb(29, 22, 109);
/* oklch */ color: oklch(28.3% 0.142 275.9);
Tailwind
colors: {
  custom: {
    50: '#675598',
    500: '#1d166d',
    950: '#000000',
  },
}
SCSS
$custom: #1d166d;
$custom-light: #675598;
$custom-dark: #000000;
JSON
{
  "hex": "#1d166d",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 244.828,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28294,
    "c": 0.14172,
    "h": 275.9
  },
  "luminance": 0.01939
}

Semantic roles & 50–950 ramp

primary
#1D166D
secondary
#9BA33C
accent
#E93EDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D166D

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

Preview Lab → · Contrast checker → · Palette generator →

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