#1D168C#1D168C

#1D168C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.180 H 272.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#1D168C
RGBrgb(29, 22, 140)
HSLhsl(244, 73%, 32%)
HSVhsv(244, 84%, 55%)
CMYKcmyk(79.3%, 84.3%, 0%, 45.1%)
CIE-LABlab(18.92, 43.18, -62.33)
CIE-LCHlch(18.92, 75.83, 304.71°)
OKLaboklab(32.01% 0.0067 -0.1803)
OKLCHoklch(32.01% 0.18 272.1)
XYZxyz(5.5256, 2.7279, 25.0412)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D168C #858C16
analogous
#164A8C #1D168C #58168C
triadic
#1D168C #8C1D16 #168C1D
tetradic
#1D168C #8C164A #858C16 #168C58
square
#1D168C #8C164A #858C16 #168C58
split-complementary
#1D168C #8C5816 #4A8C16
monochromatic
#070522 #120E57 #1D168C #281EC1 #463CE0

Accessibility & contrast

On white

13.59
#1D168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1D168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D168C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D168C#FFFFFF#000000##FFFFFF
##1D168C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d168c;
/* rgb */ color: rgb(29, 22, 140);
/* oklch */ color: oklch(32.0% 0.180 272.1);
Tailwind
colors: {
  custom: {
    50: '#6f57af',
    500: '#1d168c',
    950: '#000000',
  },
}
SCSS
$custom: #1d168c;
$custom-light: #6f57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d168c",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 243.559,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32008,
    "c": 0.18046,
    "h": 272.1
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#1D168C
secondary
#B8C03E
accent
#F038E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1D168C

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

Preview Lab → · Contrast checker → · Palette generator →

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