#1D1986#1D1986

#1D1986 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.171 H 272.4°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1D1986
RGBrgb(29, 25, 134)
HSLhsl(242, 69%, 31%)
HSVhsv(242, 81%, 53%)
CMYKcmyk(78.4%, 81.3%, 0%, 47.5%)
CIE-LABlab(18.70, 39.70, -58.93)
CIE-LCHlch(18.70, 71.05, 303.97°)
OKLaboklab(31.64% 0.0072 -0.1705)
OKLCHoklch(31.64% 0.171 272.4)
XYZxyz(5.1560, 2.6771, 22.7946)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1986 #828619
analogous
#194B86 #1D1986 #531986
triadic
#1D1986 #861D19 #19861D
tetradic
#1D1986 #86194B #828619 #198653
square
#1D1986 #86194B #828619 #198653
split-complementary
#1D1986 #865319 #4B8619
monochromatic
#07061F #120F52 #1D1986 #2823BA #443EDB

Accessibility & contrast

On white

13.68
#1D1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1986
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1986#FFFFFF#000000##FFFFFF
##1D19861.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1986;
/* rgb */ color: rgb(29, 25, 134);
/* oklch */ color: oklch(31.6% 0.171 272.4);
Tailwind
colors: {
  custom: {
    50: '#6d58aa',
    500: '#1d1986',
    950: '#000000',
  },
}
SCSS
$custom: #1d1986;
$custom-light: #6d58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1986",
  "rgb": {
    "r": 29,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 242.202,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31643,
    "c": 0.17068,
    "h": 272.4
  },
  "luminance": 0.02678
}

Semantic roles & 50–950 ramp

primary
#1D1986
secondary
#B5BA41
accent
#EB3CE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1986

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

Preview Lab → · Contrast checker → · Palette generator →

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