#1D2D81#1D2D81

#1D2D81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.142 H 269.0°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#1D2D81
RGBrgb(29, 45, 129)
HSLhsl(230, 63%, 31%)
HSVhsv(230, 78%, 51%)
CMYKcmyk(77.5%, 65.1%, 0%, 49.4%)
CIE-LABlab(22.73, 25.34, -49.14)
CIE-LCHlch(22.73, 55.29, 297.28°)
OKLaboklab(34.38% -0.0024 -0.142)
OKLCHoklch(34.38% 0.142 269)
XYZxyz(5.4062, 3.7224, 21.1982)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2D81 #81711D
analogous
#1D5F81 #1D2D81 #3F1D81
triadic
#1D2D81 #811D2D #2D811D
tetradic
#1D2D81 #811D5F #81711D #1D813F
square
#1D2D81 #811D5F #81711D #1D813F
split-complementary
#1D2D81 #813F1D #5F811D
monochromatic
#070A1D #121C4F #1D2D81 #283EB3 #445BD5

Accessibility & contrast

On white

12.04
#1D2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1D2D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2D81
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2D81#FFFFFF#000000##FFFFFF
##1D2D811.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1d2d81;
/* rgb */ color: rgb(29, 45, 129);
/* oklch */ color: oklch(34.4% 0.142 269.0);
Tailwind
colors: {
  custom: {
    50: '#6a65a6',
    500: '#1d2d81',
    950: '#000000',
  },
}
SCSS
$custom: #1d2d81;
$custom-light: #6a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2d81",
  "rgb": {
    "r": 29,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 230.4,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34382,
    "c": 0.14207,
    "h": 269
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#1D2D81
secondary
#B4A346
accent
#CC41E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1D2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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