#1D1271#1D1271

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

Color values

HEX#1D1271
RGBrgb(29, 18, 113)
HSLhsl(247, 73%, 26%)
HSVhsv(247, 84%, 44%)
CMYKcmyk(74.3%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.88, 36.41, -51.84)
CIE-LCHlch(14.88, 63.35, 305.09°)
OKLaboklab(28.23% 0.0155 -0.1498)
OKLCHoklch(28.23% 0.151 275.9)
XYZxyz(3.7027, 1.8857, 15.7884)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1271 #667112
analogous
#123771 #1D1271 #4C1271
triadic
#1D1271 #711D12 #12711D
tetradic
#1D1271 #711237 #667112 #12714C
square
#1D1271 #711237 #667112 #12714C
split-complementary
#1D1271 #714C12 #377112
monochromatic
#07041A #0F0A3C #1D1271 #2B1AA6 #3823DB

Accessibility & contrast

On white

15.25
#1D1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1271
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1271#FFFFFF#000000##FFFFFF
##1D12711.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1271;
/* rgb */ color: rgb(29, 18, 113);
/* oklch */ color: oklch(28.2% 0.151 275.9);
Tailwind
colors: {
  custom: {
    50: '#68539b',
    500: '#1d1271',
    950: '#000000',
  },
}
SCSS
$custom: #1d1271;
$custom-light: #68539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1271",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 246.947,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28233,
    "c": 0.15065,
    "h": 275.9
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#1D1271
secondary
#9BA837
accent
#EF39DA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1D1271

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

Preview Lab → · Contrast checker → · Palette generator →

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