#1D1267#1D1267

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

Color values

HEX#1D1267
RGBrgb(29, 18, 103)
HSLhsl(248, 70%, 24%)
HSVhsv(248, 83%, 40%)
CMYKcmyk(71.8%, 82.5%, 0%, 59.6%)
CIE-LABlab(13.67, 33.08, -47.29)
CIE-LCHlch(13.67, 57.71, 304.97°)
OKLaboklab(27.04% 0.0184 -0.1366)
OKLCHoklch(27.04% 0.138 277.7)
XYZxyz(3.1704, 1.6728, 12.9851)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1267 #5C6712
analogous
#123167 #1D1267 #471267
triadic
#1D1267 #671D12 #12671D
tetradic
#1D1267 #671231 #5C6712 #126747
square
#1D1267 #671231 #5C6712 #126747
split-complementary
#1D1267 #674712 #316712
monochromatic
#07051A #0E0933 #1D1267 #2C1B9B #3A24CF

Accessibility & contrast

On white

15.74
#1D1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1267
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1267#FFFFFF#000000##FFFFFF
##1D12671.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002669
Deuteranopia (green-blind)
#001F66
Tritanopia (blue-blind)
#002C3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1d1267;
/* rgb */ color: rgb(29, 18, 103);
/* oklch */ color: oklch(27.0% 0.138 277.7);
Tailwind
colors: {
  custom: {
    50: '#665293',
    500: '#1d1267',
    950: '#000000',
  },
}
SCSS
$custom: #1d1267;
$custom-light: #665293;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1267",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 247.765,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.27037,
    "c": 0.13788,
    "h": 277.7
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#1D1267
secondary
#919F36
accent
#ED3BD6
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1D1267

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

Preview Lab → · Contrast checker → · Palette generator →

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