#1D2786#1D2786

#1D2786 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.156 H 270.3°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1D2786
RGBrgb(29, 39, 134)
HSLhsl(234, 64%, 32%)
HSVhsv(234, 78%, 53%)
CMYKcmyk(78.4%, 70.9%, 0%, 47.5%)
CIE-LABlab(21.70, 31.29, -53.97)
CIE-LCHlch(21.70, 62.39, 300.10°)
OKLaboklab(33.78% 0.0009 -0.1562)
OKLCHoklch(33.78% 0.156 270.3)
XYZxyz(5.5338, 3.4329, 22.9206)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2786 #867C1D
analogous
#1D5C86 #1D2786 #481D86
triadic
#1D2786 #861D27 #27861D
tetradic
#1D2786 #861D5C #867C1D #1D8648
square
#1D2786 #861D5C #867C1D #1D8648
split-complementary
#1D2786 #86481D #5C861D
monochromatic
#070A21 #121854 #1D2786 #2836B8 #4654D7

Accessibility & contrast

On white

12.45
#1D2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2786
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2786#FFFFFF#000000##FFFFFF
##1D27861.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003989
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2786;
/* rgb */ color: rgb(29, 39, 134);
/* oklch */ color: oklch(33.8% 0.156 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c61aa',
    500: '#1d2786',
    950: '#000000',
  },
}
SCSS
$custom: #1d2786;
$custom-light: #6c61aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2786",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 234.286,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33777,
    "c": 0.15623,
    "h": 270.3
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#1D2786
secondary
#B9AE46
accent
#D840E7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D2786

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

Preview Lab → · Contrast checker → · Palette generator →

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