#1D168E#1D168E

#1D168E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 271.9°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#1D168E
RGBrgb(29, 22, 142)
HSLhsl(244, 73%, 32%)
HSVhsv(244, 85%, 56%)
CMYKcmyk(79.6%, 84.5%, 0%, 44.3%)
CIE-LABlab(19.17, 43.82, -63.16)
CIE-LCHlch(19.17, 76.87, 304.75°)
OKLaboklab(32.26% 0.0062 -0.1827)
OKLCHoklch(32.26% 0.183 271.9)
XYZxyz(5.6744, 2.7874, 25.8249)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D168E #878E16
analogous
#164B8E #1D168E #59168E
triadic
#1D168E #8E1D16 #168E1D
tetradic
#1D168E #8E164B #878E16 #168E59
square
#1D168E #8E164B #878E16 #168E59
split-complementary
#1D168E #8E5916 #4B8E16
monochromatic
#070624 #120E59 #1D168E #281EC3 #473DE1

Accessibility & contrast

On white

13.48
#1D168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1D168E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D168E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D168E#FFFFFF#000000##FFFFFF
##1D168E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d168e;
/* rgb */ color: rgb(29, 22, 142);
/* oklch */ color: oklch(32.3% 0.183 271.9);
Tailwind
colors: {
  custom: {
    50: '#7057b0',
    500: '#1d168e',
    950: '#000000',
  },
}
SCSS
$custom: #1d168e;
$custom-light: #7057b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d168e",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 243.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32255,
    "c": 0.18285,
    "h": 271.9
  },
  "luminance": 0.02788
}

Semantic roles & 50–950 ramp

primary
#1D168E
secondary
#B9C13F
accent
#F038E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D168E

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

Preview Lab → · Contrast checker → · Palette generator →

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