#1D2782#1D2782

#1D2782 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.151 H 270.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1D2782
RGBrgb(29, 39, 130)
HSLhsl(234, 64%, 31%)
HSVhsv(234, 78%, 51%)
CMYKcmyk(77.7%, 70%, 0%, 49%)
CIE-LABlab(21.30, 29.79, -52.12)
CIE-LCHlch(21.30, 60.03, 299.75°)
OKLaboklab(33.36% 0.0013 -0.1508)
OKLCHoklch(33.36% 0.151 270.5)
XYZxyz(5.2601, 3.3234, 21.4790)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2782 #82781D
analogous
#1D5982 #1D2782 #451D82
triadic
#1D2782 #821D27 #27821D
tetradic
#1D2782 #821D59 #82781D #1D8245
square
#1D2782 #821D59 #82781D #1D8245
split-complementary
#1D2782 #82451D #59821D
monochromatic
#07091E #121850 #1D2782 #2836B4 #4452D5

Accessibility & contrast

On white

12.61
#1D2782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1D2782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2782
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2782#FFFFFF#000000##FFFFFF
##1D27821.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#004051
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1d2782;
/* rgb */ color: rgb(29, 39, 130);
/* oklch */ color: oklch(33.4% 0.151 270.5);
Tailwind
colors: {
  custom: {
    50: '#6b61a7',
    500: '#1d2782',
    950: '#000000',
  },
}
SCSS
$custom: #1d2782;
$custom-light: #6b61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2782",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 130
  },
  "hsl": {
    "h": 234.059,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33361,
    "c": 0.15084,
    "h": 270.5
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#1D2782
secondary
#B5AA46
accent
#D641E7
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#080510
muted
#7A797F

Preview Lab

Preview with #1D2782

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

Preview Lab → · Contrast checker → · Palette generator →

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