#1D167A#1D167A

#1D167A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.158 H 274.1°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1D167A
RGBrgb(29, 22, 122)
HSLhsl(244, 69%, 28%)
HSVhsv(244, 82%, 48%)
CMYKcmyk(76.2%, 82%, 0%, 52.2%)
CIE-LABlab(16.70, 37.29, -54.62)
CIE-LCHlch(16.70, 66.14, 304.32°)
OKLaboklab(29.82% 0.0113 -0.158)
OKLCHoklch(29.82% 0.158 274.1)
XYZxyz(4.3053, 2.2397, 18.6140)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D167A #737A16
analogous
#16417A #1D167A #4F167A
triadic
#1D167A #7A1D16 #167A1D
tetradic
#1D167A #7A1641 #737A16 #167A4F
square
#1D167A #7A1641 #737A16 #167A4F
split-complementary
#1D167A #7A4F16 #417A16
monochromatic
#06051A #110D46 #1D167A #291FAE #3C31DA

Accessibility & contrast

On white

14.50
#1D167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1D167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D167A
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D167A#FFFFFF#000000##FFFFFF
##1D167A1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d167a;
/* rgb */ color: rgb(29, 22, 122);
/* oklch */ color: oklch(29.8% 0.158 274.1);
Tailwind
colors: {
  custom: {
    50: '#6a56a2',
    500: '#1d167a',
    950: '#000000',
  },
}
SCSS
$custom: #1d167a;
$custom-light: #6a56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d167a",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 244.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29822,
    "c": 0.1584,
    "h": 274.1
  },
  "luminance": 0.0224
}

Semantic roles & 50–950 ramp

primary
#1D167A
secondary
#A7AF3D
accent
#EC3CE0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D167A

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

Preview Lab → · Contrast checker → · Palette generator →

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