#1D1785#1D1785

#1D1785 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.171 H 272.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#1D1785
RGBrgb(29, 23, 133)
HSLhsl(243, 71%, 31%)
HSVhsv(243, 83%, 52%)
CMYKcmyk(78.2%, 82.7%, 0%, 47.8%)
CIE-LABlab(18.22, 40.42, -59.10)
CIE-LCHlch(18.22, 71.60, 304.37°)
OKLaboklab(31.27% 0.0081 -0.171)
OKLCHoklch(31.27% 0.171 272.7)
XYZxyz(5.0453, 2.5669, 22.4153)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1785 #7F8517
analogous
#174885 #1D1785 #541785
triadic
#1D1785 #851D17 #17851D
tetradic
#1D1785 #851748 #7F8517 #178554
square
#1D1785 #851748 #7F8517 #178554
split-complementary
#1D1785 #855417 #488517
monochromatic
#06051D #120E51 #1D1785 #2820B9 #423ADD

Accessibility & contrast

On white

13.88
#1D1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1785
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1785#FFFFFF#000000##FFFFFF
##1D17851.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002783
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1785;
/* rgb */ color: rgb(29, 23, 133);
/* oklch */ color: oklch(31.3% 0.171 272.7);
Tailwind
colors: {
  custom: {
    50: '#6d57aa',
    500: '#1d1785',
    950: '#000000',
  },
}
SCSS
$custom: #1d1785;
$custom-light: #6d57aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1785",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 243.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31271,
    "c": 0.17118,
    "h": 272.7
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#1D1785
secondary
#B2B93F
accent
#ED3BE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1785

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

Preview Lab → · Contrast checker → · Palette generator →

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