#1D168B#1D168B

#1D168B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.179 H 272.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#1D168B
RGBrgb(29, 22, 139)
HSLhsl(244, 73%, 32%)
HSVhsv(244, 84%, 55%)
CMYKcmyk(79.1%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.79, 42.86, -61.91)
CIE-LCHlch(18.79, 75.30, 304.69°)
OKLaboklab(31.89% 0.0069 -0.1791)
OKLCHoklch(31.89% 0.179 272.2)
XYZxyz(5.4522, 2.6985, 24.6546)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D168B #848B16
analogous
#164A8B #1D168B #58168B
triadic
#1D168B #8B1D16 #168B1D
tetradic
#1D168B #8B164A #848B16 #168B58
square
#1D168B #8B164A #848B16 #168B58
split-complementary
#1D168B #8B5816 #4A8B16
monochromatic
#070521 #120E56 #1D168B #281EC0 #453BE0

Accessibility & contrast

On white

13.64
#1D168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D168B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D168B
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D168B#FFFFFF#000000##FFFFFF
##1D168B1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d168b;
/* rgb */ color: rgb(29, 22, 139);
/* oklch */ color: oklch(31.9% 0.179 272.2);
Tailwind
colors: {
  custom: {
    50: '#6f57ae',
    500: '#1d168b',
    950: '#000000',
  },
}
SCSS
$custom: #1d168b;
$custom-light: #6f57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d168b",
  "rgb": {
    "r": 29,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 243.59,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31885,
    "c": 0.17926,
    "h": 272.2
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#1D168B
secondary
#B7BF3E
accent
#EF38E4
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D168B

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

Preview Lab → · Contrast checker → · Palette generator →

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