#1D2979#1D2979

#1D2979 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.136 H 270.3°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1D2979
RGBrgb(29, 41, 121)
HSLhsl(232, 61%, 29%)
HSVhsv(232, 76%, 47%)
CMYKcmyk(76%, 66.1%, 0%, 52.5%)
CIE-LABlab(20.93, 24.98, -47.01)
CIE-LCHlch(20.93, 53.24, 297.98°)
OKLaboklab(32.83% 0.0007 -0.1359)
OKLCHoklch(32.83% 0.136 270.3)
XYZxyz(4.7496, 3.2271, 18.4580)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2979 #796D1D
analogous
#1D5779 #1D2979 #3F1D79
triadic
#1D2979 #791D29 #29791D
tetradic
#1D2979 #791D57 #796D1D #1D793F
square
#1D2979 #791D57 #796D1D #1D793F
split-complementary
#1D2979 #793F1D #57791D
monochromatic
#060819 #111848 #1D2979 #293AAA #3F52D1

Accessibility & contrast

On white

12.76
#1D2979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1D2979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2979
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2979#FFFFFF#000000##FFFFFF
##1D29791.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1d2979;
/* rgb */ color: rgb(29, 41, 121);
/* oklch */ color: oklch(32.8% 0.136 270.3);
Tailwind
colors: {
  custom: {
    50: '#6862a0',
    500: '#1d2979',
    950: '#000000',
  },
}
SCSS
$custom: #1d2979;
$custom-light: #6862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2979",
  "rgb": {
    "r": 29,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 232.174,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32828,
    "c": 0.13587,
    "h": 270.3
  },
  "luminance": 0.03228
}

Semantic roles & 50–950 ramp

primary
#1D2979
secondary
#AD9F45
accent
#CF43E4
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D2979

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

Preview Lab → · Contrast checker → · Palette generator →

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