#1D167C#1D167C

#1D167C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.161 H 273.9°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#1D167C
RGBrgb(29, 22, 124)
HSLhsl(244, 70%, 29%)
HSVhsv(244, 82%, 49%)
CMYKcmyk(76.6%, 82.3%, 0%, 51.4%)
CIE-LABlab(16.94, 37.96, -55.50)
CIE-LCHlch(16.94, 67.24, 304.37°)
OKLaboklab(30.06% 0.0108 -0.1605)
OKLCHoklch(30.06% 0.161 273.9)
XYZxyz(4.4305, 2.2898, 19.2734)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D167C #757C16
analogous
#16427C #1D167C #50167C
triadic
#1D167C #7C1D16 #167C1D
tetradic
#1D167C #7C1642 #757C16 #167C50
square
#1D167C #7C1642 #757C16 #167C50
split-complementary
#1D167C #7C5016 #427C16
monochromatic
#06051A #110D48 #1D167C #291FB0 #3D32DB

Accessibility & contrast

On white

14.40
#1D167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D167C
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D167C#FFFFFF#000000##FFFFFF
##1D167C1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d167c;
/* rgb */ color: rgb(29, 22, 124);
/* oklch */ color: oklch(30.1% 0.161 273.9);
Tailwind
colors: {
  custom: {
    50: '#6b56a3',
    500: '#1d167c',
    950: '#000000',
  },
}
SCSS
$custom: #1d167c;
$custom-light: #6b56a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1d167c",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 244.118,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30061,
    "c": 0.16091,
    "h": 273.9
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#1D167C
secondary
#A9B13D
accent
#ED3BE0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D167C

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

Preview Lab → · Contrast checker → · Palette generator →

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