#1D166F#1D166F

#1D166F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.144 H 275.6°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#1D166F
RGBrgb(29, 22, 111)
HSLhsl(245, 67%, 26%)
HSVhsv(245, 80%, 44%)
CMYKcmyk(73.9%, 80.2%, 0%, 56.5%)
CIE-LABlab(15.39, 33.55, -49.68)
CIE-LCHlch(15.39, 59.95, 304.03°)
OKLaboklab(28.53% 0.0141 -0.1436)
OKLCHoklch(28.53% 0.144 275.6)
XYZxyz(3.6619, 1.9824, 15.2255)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D166F #686F16
analogous
#163B6F #1D166F #49166F
triadic
#1D166F #6F1D16 #166F1D
tetradic
#1D166F #6F163B #686F16 #166F49
square
#1D166F #6F163B #686F16 #166F49
split-complementary
#1D166F #6F4916 #3B6F16
monochromatic
#07051A #100C3C #1D166F #2A20A2 #382BD5

Accessibility & contrast

On white

15.04
#1D166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1D166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D166F
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D166F#FFFFFF#000000##FFFFFF
##1D166F1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d166f;
/* rgb */ color: rgb(29, 22, 111);
/* oklch */ color: oklch(28.5% 0.144 275.6);
Tailwind
colors: {
  custom: {
    50: '#675599',
    500: '#1d166f',
    950: '#000000',
  },
}
SCSS
$custom: #1d166f;
$custom-light: #675599;
$custom-dark: #000000;
JSON
{
  "hex": "#1d166f",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 244.719,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28525,
    "c": 0.14433,
    "h": 275.6
  },
  "luminance": 0.01983
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D166F

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

Preview Lab → · Contrast checker → · Palette generator →

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