#1D2F81#1D2F81

#1D2F81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.140 H 268.4°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#1D2F81
RGBrgb(29, 47, 129)
HSLhsl(229, 63%, 31%)
HSVhsv(229, 78%, 51%)
CMYKcmyk(77.5%, 63.6%, 0%, 49.4%)
CIE-LABlab(23.27, 23.96, -48.26)
CIE-LCHlch(23.27, 53.88, 296.40°)
OKLaboklab(34.78% -0.0038 -0.1395)
OKLCHoklch(34.78% 0.14 268.4)
XYZxyz(5.4843, 3.8786, 21.2242)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2F81 #816F1D
analogous
#1D6181 #1D2F81 #3D1D81
triadic
#1D2F81 #811D2F #2F811D
tetradic
#1D2F81 #811D61 #816F1D #1D813D
square
#1D2F81 #811D61 #816F1D #1D813D
split-complementary
#1D2F81 #813D1D #61811D
monochromatic
#070B1D #121D4F #1D2F81 #2841B3 #445ED5

Accessibility & contrast

On white

11.83
#1D2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1D2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2F81
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2F81#FFFFFF#000000##FFFFFF
##1D2F811.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d2f81;
/* rgb */ color: rgb(29, 47, 129);
/* oklch */ color: oklch(34.8% 0.140 268.4);
Tailwind
colors: {
  custom: {
    50: '#6a67a6',
    500: '#1d2f81',
    950: '#000000',
  },
}
SCSS
$custom: #1d2f81;
$custom-light: #6a67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2f81",
  "rgb": {
    "r": 29,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 229.2,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.13951,
    "h": 268.4
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#1D2F81
secondary
#B4A046
accent
#C941E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1D2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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