#1D1561#1D1561

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

Color values

HEX#1D1561
RGBrgb(29, 21, 97)
HSLhsl(246, 64%, 23%)
HSVhsv(246, 78%, 38%)
CMYKcmyk(70.1%, 78.4%, 0%, 62%)
CIE-LABlab(13.59, 29.25, -43.44)
CIE-LCHlch(13.59, 52.37, 303.95°)
OKLaboklab(26.78% 0.0181 -0.1254)
OKLCHoklch(26.78% 0.127 278.2)
XYZxyz(2.9318, 1.6604, 11.4729)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1561 #596115
analogous
#153361 #1D1561 #431561
triadic
#1D1561 #611D15 #15611D
tetradic
#1D1561 #611533 #596115 #156143
square
#1D1561 #611533 #596115 #156143
split-complementary
#1D1561 #614315 #336115
monochromatic
#080519 #0E0A2F #1D1561 #2C2093 #3B2BC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D1561#FFFFFF#000000##FFFFFF
##1D15611.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)
#002663
Deuteranopia (green-blind)
#002060
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d1561;
/* rgb */ color: rgb(29, 21, 97);
/* oklch */ color: oklch(26.8% 0.127 278.2);
Tailwind
colors: {
  custom: {
    50: '#64548f',
    500: '#1d1561',
    950: '#000000',
  },
}
SCSS
$custom: #1d1561;
$custom-light: #64548f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1561",
  "rgb": {
    "r": 29,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 246.316,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26779,
    "c": 0.12675,
    "h": 278.2
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#1D1561
secondary
#8E983A
accent
#E740D6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D1561

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

Preview Lab → · Contrast checker → · Palette generator →

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