#1D1168#1D1168

#1D1168 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.0% C 0.140 H 277.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#1D1168
RGBrgb(29, 17, 104)
HSLhsl(248, 72%, 24%)
HSVhsv(248, 84%, 41%)
CMYKcmyk(72.1%, 83.7%, 0%, 59.2%)
CIE-LABlab(13.60, 33.95, -48.07)
CIE-LCHlch(13.60, 58.85, 305.24°)
OKLaboklab(27.02% 0.0187 -0.1389)
OKLCHoklch(27.02% 0.14 277.7)
XYZxyz(3.2050, 1.6613, 13.2458)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1168 #5C6811
analogous
#113068 #1D1168 #481168
triadic
#1D1168 #681D11 #11681D
tetradic
#1D1168 #681130 #5C6811 #116848
square
#1D1168 #681130 #5C6811 #116848
split-complementary
#1D1168 #684811 #306811
monochromatic
#07041A #0E0833 #1D1168 #2C1A9D #3A22D1

Accessibility & contrast

On white

15.76
#1D1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1D1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1168
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1168#FFFFFF#000000##FFFFFF
##1D11681.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#001F66
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d1168;
/* rgb */ color: rgb(29, 17, 104);
/* oklch */ color: oklch(27.0% 0.140 277.7);
Tailwind
colors: {
  custom: {
    50: '#665294',
    500: '#1d1168',
    950: '#000000',
  },
}
SCSS
$custom: #1d1168;
$custom-light: #665294;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1168",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 248.276,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27024,
    "c": 0.14013,
    "h": 277.7
  },
  "luminance": 0.01662
}

Semantic roles & 50–950 ramp

primary
#1D1168
secondary
#91A035
accent
#EF39D6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1D1168

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

Preview Lab → · Contrast checker → · Palette generator →

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