#1D1C8A#1D1C8A

#1D1C8A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.173 H 271.7°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#1D1C8A
RGBrgb(29, 28, 138)
HSLhsl(241, 66%, 33%)
HSVhsv(241, 80%, 54%)
CMYKcmyk(79%, 79.7%, 0%, 45.9%)
CIE-LABlab(19.75, 39.41, -59.71)
CIE-LCHlch(19.75, 71.54, 303.43°)
OKLaboklab(32.51% 0.0053 -0.1728)
OKLCHoklch(32.51% 0.173 271.7)
XYZxyz(5.5078, 2.9261, 24.3143)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1C8A #898A1C
analogous
#1C528A #1D1C8A #541C8A
triadic
#1D1C8A #8A1D1C #1C8A1D
tetradic
#1D1C8A #8A1C52 #898A1C #1C8A54
square
#1D1C8A #8A1C52 #898A1C #1C8A54
split-complementary
#1D1C8A #8A541C #528A1C
monochromatic
#080724 #121257 #1D1C8A #2826BD #4847DA

Accessibility & contrast

On white

13.25
#1D1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1D1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1C8A
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1C8A#FFFFFF#000000##FFFFFF
##1D1C8A1.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1c8a;
/* rgb */ color: rgb(29, 28, 138);
/* oklch */ color: oklch(32.5% 0.173 271.7);
Tailwind
colors: {
  custom: {
    50: '#6e5aad',
    500: '#1d1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d1c8a;
$custom-light: #6e5aad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1c8a",
  "rgb": {
    "r": 29,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 240.545,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32513,
    "c": 0.17292,
    "h": 271.7
  },
  "luminance": 0.02927
}

Semantic roles & 50–950 ramp

primary
#1D1C8A
secondary
#BABB46
accent
#E93FE8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1D1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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