#1D1171#1D1171

#1D1171 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.152 H 276.0°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#1D1171
RGBrgb(29, 17, 113)
HSLhsl(248, 74%, 25%)
HSVhsv(248, 85%, 44%)
CMYKcmyk(74.3%, 85%, 0%, 55.7%)
CIE-LABlab(14.70, 36.92, -52.13)
CIE-LCHlch(14.70, 63.88, 305.31°)
OKLaboklab(28.11% 0.0159 -0.1507)
OKLCHoklch(28.11% 0.152 276)
XYZxyz(3.6868, 1.8540, 15.7831)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1171 #657111
analogous
#113571 #1D1171 #4D1171
triadic
#1D1171 #711D11 #11711D
tetradic
#1D1171 #711135 #657111 #11714D
square
#1D1171 #711135 #657111 #11714D
split-complementary
#1D1171 #714D11 #357111
monochromatic
#07041B #0F093C #1D1171 #2B19A6 #3821DB

Accessibility & contrast

On white

15.32
#1D1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1D1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1171
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1171#FFFFFF#000000##FFFFFF
##1D11711.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1d1171;
/* rgb */ color: rgb(29, 17, 113);
/* oklch */ color: oklch(28.1% 0.152 276.0);
Tailwind
colors: {
  custom: {
    50: '#68529b',
    500: '#1d1171',
    950: '#000000',
  },
}
SCSS
$custom: #1d1171;
$custom-light: #68529b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1171",
  "rgb": {
    "r": 29,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 247.5,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28113,
    "c": 0.15151,
    "h": 276
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#1D1171
secondary
#9AA836
accent
#F137D9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D1171

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

Preview Lab → · Contrast checker → · Palette generator →

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