#1D166A#1D166A

#1D166A is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.138 H 276.4°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1D166A
RGBrgb(29, 22, 106)
HSLhsl(245, 66%, 25%)
HSVhsv(245, 79%, 42%)
CMYKcmyk(72.6%, 79.2%, 0%, 58.4%)
CIE-LABlab(14.82, 31.82, -47.37)
CIE-LCHlch(14.82, 57.06, 303.89°)
OKLaboklab(27.95% 0.0153 -0.1369)
OKLCHoklch(27.95% 0.138 276.4)
XYZxyz(3.3943, 1.8753, 13.8160)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D166A #636A16
analogous
#16396A #1D166A #47166A
triadic
#1D166A #6A1D16 #166A1D
tetradic
#1D166A #6A1639 #636A16 #166A47
square
#1D166A #6A1639 #636A16 #166A47
split-complementary
#1D166A #6A4716 #396A16
monochromatic
#070519 #0F0B37 #1D166A #2B219D #392BCF

Accessibility & contrast

On white

15.27
#1D166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1D166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D166A
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D166A#FFFFFF#000000##FFFFFF
##1D166A1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002268
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1d166a;
/* rgb */ color: rgb(29, 22, 106);
/* oklch */ color: oklch(27.9% 0.138 276.4);
Tailwind
colors: {
  custom: {
    50: '#665596',
    500: '#1d166a',
    950: '#000000',
  },
}
SCSS
$custom: #1d166a;
$custom-light: #665596;
$custom-dark: #000000;
JSON
{
  "hex": "#1d166a",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 245,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27949,
    "c": 0.13775,
    "h": 276.4
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#1D166A
secondary
#98A03B
accent
#E93FDA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #1D166A

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

Preview Lab → · Contrast checker → · Palette generator →

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