#1D2A7F#1D2A7F

#1D2A7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.143 H 269.9°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#1D2A7F
RGBrgb(29, 42, 127)
HSLhsl(232, 63%, 31%)
HSVhsv(232, 77%, 50%)
CMYKcmyk(77.2%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.76, 26.62, -49.47)
CIE-LCHlch(21.76, 56.18, 298.29°)
OKLaboklab(33.61% -0.0003 -0.143)
OKLCHoklch(33.61% 0.143 269.9)
XYZxyz(5.1641, 3.4489, 20.4681)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A7F #7F721D
analogous
#1D5B7F #1D2A7F #411D7F
triadic
#1D2A7F #7F1D2A #2A7F1D
tetradic
#1D2A7F #7F1D5B #7F721D #1D7F41
square
#1D2A7F #7F1D5B #7F721D #1D7F41
split-complementary
#1D2A7F #7F411D #5B7F1D
monochromatic
#06091B #121A4D #1D2A7F #283AB1 #4256D4

Accessibility & contrast

On white

12.43
#1D2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A7F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A7F#FFFFFF#000000##FFFFFF
##1D2A7F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2a7f;
/* rgb */ color: rgb(29, 42, 127);
/* oklch */ color: oklch(33.6% 0.143 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a63a5',
    500: '#1d2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a7f;
$custom-light: #6a63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a7f",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 232.041,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33609,
    "c": 0.14304,
    "h": 269.9
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#1D2A7F
secondary
#B2A445
accent
#D042E6
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1D2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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