#1D167D#1D167D

#1D167D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.162 H 273.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#1D167D
RGBrgb(29, 22, 125)
HSLhsl(244, 70%, 29%)
HSVhsv(244, 82%, 49%)
CMYKcmyk(76.8%, 82.4%, 0%, 51%)
CIE-LABlab(17.06, 38.30, -55.94)
CIE-LCHlch(17.06, 67.79, 304.39°)
OKLaboklab(30.18% 0.0106 -0.1618)
OKLCHoklch(30.18% 0.162 273.7)
XYZxyz(4.4940, 2.3152, 19.6081)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D167D #767D16
analogous
#16437D #1D167D #51167D
triadic
#1D167D #7D1D16 #167D1D
tetradic
#1D167D #7D1643 #767D16 #167D51
square
#1D167D #7D1643 #767D16 #167D51
split-complementary
#1D167D #7D5116 #437D16
monochromatic
#06051A #110D49 #1D167D #291FB1 #3E32DB

Accessibility & contrast

On white

14.35
#1D167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D167D
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D167D#FFFFFF#000000##FFFFFF
##1D167D1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d167d;
/* rgb */ color: rgb(29, 22, 125);
/* oklch */ color: oklch(30.2% 0.162 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b56a4',
    500: '#1d167d',
    950: '#000000',
  },
}
SCSS
$custom: #1d167d;
$custom-light: #6b56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d167d",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 244.078,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30181,
    "c": 0.16216,
    "h": 273.7
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#1D167D
secondary
#AAB23D
accent
#ED3BE1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1D167D

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

Preview Lab → · Contrast checker → · Palette generator →

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