#1D1172#1D1172

#1D1172 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.153 H 275.9°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#1D1172
RGBrgb(29, 17, 114)
HSLhsl(247, 74%, 26%)
HSVhsv(247, 85%, 45%)
CMYKcmyk(74.6%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.83, 37.24, -52.57)
CIE-LCHlch(14.83, 64.43, 305.32°)
OKLaboklab(28.24% 0.0156 -0.152)
OKLCHoklch(28.24% 0.153 275.9)
XYZxyz(3.7434, 1.8767, 16.0813)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1172 #667211
analogous
#113572 #1D1172 #4D1172
triadic
#1D1172 #721D11 #11721D
tetradic
#1D1172 #721135 #667211 #11724D
square
#1D1172 #721135 #667211 #11724D
split-complementary
#1D1172 #724D11 #357211
monochromatic
#07041B #0F093D #1D1172 #2B19A7 #3821DD

Accessibility & contrast

On white

15.27
#1D1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1D1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1172
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1172#FFFFFF#000000##FFFFFF
##1D11721.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002170
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1d1172;
/* rgb */ color: rgb(29, 17, 114);
/* oklch */ color: oklch(28.2% 0.153 275.9);
Tailwind
colors: {
  custom: {
    50: '#69529c',
    500: '#1d1172',
    950: '#000000',
  },
}
SCSS
$custom: #1d1172;
$custom-light: #69529c;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1172",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 247.423,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28235,
    "c": 0.15276,
    "h": 275.9
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#1D1172
secondary
#9BA936
accent
#F137DA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D1172

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

Preview Lab → · Contrast checker → · Palette generator →

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