#1D167B#1D167B

#1D167B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.160 H 274.0°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#1D167B
RGBrgb(29, 22, 123)
HSLhsl(244, 70%, 28%)
HSVhsv(244, 82%, 48%)
CMYKcmyk(76.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(16.82, 37.63, -55.06)
CIE-LCHlch(16.82, 66.69, 304.35°)
OKLaboklab(29.94% 0.0111 -0.1593)
OKLCHoklch(29.94% 0.16 274)
XYZxyz(4.3676, 2.2646, 18.9420)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D167B #747B16
analogous
#16417B #1D167B #4F167B
triadic
#1D167B #7B1D16 #167B1D
tetradic
#1D167B #7B1641 #747B16 #167B4F
square
#1D167B #7B1641 #747B16 #167B4F
split-complementary
#1D167B #7B4F16 #417B16
monochromatic
#06051A #110D47 #1D167B #291FAF #3D31DA

Accessibility & contrast

On white

14.45
#1D167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D167B
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D167B#FFFFFF#000000##FFFFFF
##1D167B1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1d167b;
/* rgb */ color: rgb(29, 22, 123);
/* oklch */ color: oklch(29.9% 0.160 274.0);
Tailwind
colors: {
  custom: {
    50: '#6b56a2',
    500: '#1d167b',
    950: '#000000',
  },
}
SCSS
$custom: #1d167b;
$custom-light: #6b56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1d167b",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 244.158,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29941,
    "c": 0.15966,
    "h": 274
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#1D167B
secondary
#A8B03D
accent
#EC3BE0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D167B

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

Preview Lab → · Contrast checker → · Palette generator →

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