#1D1256#1D1256

#1D1256 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.115 H 281.6°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#1D1256
RGBrgb(29, 18, 86)
HSLhsl(250, 65%, 20%)
HSVhsv(250, 79%, 34%)
CMYKcmyk(66.3%, 79.1%, 0%, 66.3%)
CIE-LABlab(11.73, 27.22, -39.12)
CIE-LCHlch(11.73, 47.66, 304.83°)
OKLaboklab(25.09% 0.0231 -0.1128)
OKLCHoklch(25.09% 0.115 281.6)
XYZxyz(2.4022, 1.3655, 8.9393)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1256 #4B5612
analogous
#122956 #1D1256 #3F1256
triadic
#1D1256 #561D12 #12561D
tetradic
#1D1256 #561229 #4B5612 #12563F
square
#1D1256 #561229 #4B5612 #12563F
split-complementary
#1D1256 #563F12 #295612
monochromatic
#090519 #0C0723 #1D1256 #2E1D89 #3F27BB

Accessibility & contrast

On white

16.49
#1D1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#1D1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1256
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1256#FFFFFF#000000##FFFFFF
##1D12561.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002158
Deuteranopia (green-blind)
#001C55
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #1d1256;
/* rgb */ color: rgb(29, 18, 86);
/* oklch */ color: oklch(25.1% 0.115 281.6);
Tailwind
colors: {
  custom: {
    50: '#625186',
    500: '#1d1256',
    950: '#000000',
  },
}
SCSS
$custom: #1d1256;
$custom-light: #625186;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1256",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 249.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25092,
    "c": 0.11514,
    "h": 281.6
  },
  "luminance": 0.01366
}

Semantic roles & 50–950 ramp

primary
#1D1256
secondary
#808F35
accent
#E83FCD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #1D1256

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

Preview Lab → · Contrast checker → · Palette generator →

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