#1D166E#1D166E

#1D166E is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.143 H 275.8°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#1D166E
RGBrgb(29, 22, 110)
HSLhsl(245, 67%, 26%)
HSVhsv(245, 80%, 43%)
CMYKcmyk(73.6%, 80%, 0%, 56.9%)
CIE-LABlab(15.28, 33.21, -49.22)
CIE-LCHlch(15.28, 59.37, 304.01°)
OKLaboklab(28.41% 0.0144 -0.1423)
OKLCHoklch(28.41% 0.143 275.8)
XYZxyz(3.6072, 1.9605, 14.9371)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D166E #676E16
analogous
#163B6E #1D166E #49166E
triadic
#1D166E #6E1D16 #166E1D
tetradic
#1D166E #6E163B #676E16 #166E49
square
#1D166E #6E163B #676E16 #166E49
split-complementary
#1D166E #6E4916 #3B6E16
monochromatic
#07051A #100C3B #1D166E #2A20A1 #382AD4

Accessibility & contrast

On white

15.08
#1D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D166E
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D166E#FFFFFF#000000##FFFFFF
##1D166E1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d166e;
/* rgb */ color: rgb(29, 22, 110);
/* oklch */ color: oklch(28.4% 0.143 275.8);
Tailwind
colors: {
  custom: {
    50: '#675599',
    500: '#1d166e',
    950: '#000000',
  },
}
SCSS
$custom: #1d166e;
$custom-light: #675599;
$custom-dark: #000000;
JSON
{
  "hex": "#1d166e",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 244.773,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28409,
    "c": 0.14302,
    "h": 275.8
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#1D166E
secondary
#9CA43C
accent
#EA3EDC
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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