#1D2A8D#1D2A8D

#1D2A8D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.162 H 269.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#1D2A8D
RGBrgb(29, 42, 141)
HSLhsl(233, 66%, 33%)
HSVhsv(233, 79%, 55%)
CMYKcmyk(79.4%, 70.2%, 0%, 44.7%)
CIE-LABlab(23.13, 31.95, -55.99)
CIE-LCHlch(23.13, 64.46, 299.71°)
OKLaboklab(35.03% -0.0014 -0.1621)
OKLCHoklch(35.03% 0.162 269.5)
XYZxyz(6.1407, 3.8395, 25.6116)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2A8D #8D801D
analogous
#1D628D #1D2A8D #481D8D
triadic
#1D2A8D #8D1D2A #2A8D1D
tetradic
#1D2A8D #8D1D62 #8D801D #1D8D48
square
#1D2A8D #8D1D62 #8D801D #1D8D48
split-complementary
#1D2A8D #8D481D #628D1D
monochromatic
#080C27 #131B5A #1D2A8D #2739C0 #4B5BDA

Accessibility & contrast

On white

11.88
#1D2A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1D2A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2A8D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2A8D#FFFFFF#000000##FFFFFF
##1D2A8D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1d2a8d;
/* rgb */ color: rgb(29, 42, 141);
/* oklch */ color: oklch(35.0% 0.162 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d64af',
    500: '#1d2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #1d2a8d;
$custom-light: #6d64af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2a8d",
  "rgb": {
    "r": 29,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 233.036,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.16211,
    "h": 269.5
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#1D2A8D
secondary
#BCAF4A
accent
#D53FE9
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980

Preview Lab

Preview with #1D2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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