#1D1B8A#1D1B8A

#1D1B8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.174 H 271.8°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#1D1B8A
RGBrgb(29, 27, 138)
HSLhsl(241, 67%, 32%)
HSVhsv(241, 80%, 54%)
CMYKcmyk(79%, 80.4%, 0%, 45.9%)
CIE-LABlab(19.55, 39.96, -60.02)
CIE-LCHlch(19.55, 72.11, 303.65°)
OKLaboklab(32.38% 0.0056 -0.1737)
OKLCHoklch(32.38% 0.174 271.8)
XYZxyz(5.4845, 2.8795, 24.3066)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B8A #888A1B
analogous
#1B518A #1D1B8A #551B8A
triadic
#1D1B8A #8A1D1B #1B8A1D
tetradic
#1D1B8A #8A1B51 #888A1B #1B8A55
square
#1D1B8A #8A1B51 #888A1B #1B8A55
split-complementary
#1D1B8A #8A551B #518A1B
monochromatic
#070724 #121157 #1D1B8A #2825BD #4845DB

Accessibility & contrast

On white

13.32
#1D1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1D1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1B8A
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B8A#FFFFFF#000000##FFFFFF
##1D1B8A1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1d1b8a;
/* rgb */ color: rgb(29, 27, 138);
/* oklch */ color: oklch(32.4% 0.174 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e5aad',
    500: '#1d1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b8a;
$custom-light: #6e5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b8a",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 241.081,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.17384,
    "h": 271.8
  },
  "luminance": 0.0288
}

Semantic roles & 50–950 ramp

primary
#1D1B8A
secondary
#BABC45
accent
#EA3EE7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #1D1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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