#1D2C81#1D2C81

#1D2C81 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.143 H 269.3°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1D2C81
RGBrgb(29, 44, 129)
HSLhsl(231, 63%, 31%)
HSVhsv(231, 78%, 51%)
CMYKcmyk(77.5%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.47, 26.03, -49.57)
CIE-LCHlch(22.47, 55.99, 297.70°)
OKLaboklab(34.19% -0.0017 -0.1433)
OKLCHoklch(34.19% 0.143 269.3)
XYZxyz(5.3685, 3.6470, 21.1856)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2C81 #81721D
analogous
#1D5E81 #1D2C81 #401D81
triadic
#1D2C81 #811D2C #2C811D
tetradic
#1D2C81 #811D5E #81721D #1D8140
square
#1D2C81 #811D5E #81721D #1D8140
split-complementary
#1D2C81 #81401D #5E811D
monochromatic
#070A1D #121B4F #1D2C81 #283DB3 #4459D5

Accessibility & contrast

On white

12.14
#1D2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1D2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2C81
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2C81#FFFFFF#000000##FFFFFF
##1D2C811.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2c81;
/* rgb */ color: rgb(29, 44, 129);
/* oklch */ color: oklch(34.2% 0.143 269.3);
Tailwind
colors: {
  custom: {
    50: '#6a65a6',
    500: '#1d2c81',
    950: '#000000',
  },
}
SCSS
$custom: #1d2c81;
$custom-light: #6a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2c81",
  "rgb": {
    "r": 29,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 231,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34188,
    "c": 0.14333,
    "h": 269.3
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#1D2C81
secondary
#B4A446
accent
#CE41E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1D2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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