#1D1D8B#1D1D8B

#1D1D8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.173 H 271.5°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#1D1D8B
RGBrgb(29, 29, 139)
HSLhsl(240, 65%, 33%)
HSVhsv(240, 79%, 55%)
CMYKcmyk(79.1%, 79.1%, 0%, 45.5%)
CIE-LABlab(20.06, 39.19, -59.82)
CIE-LCHlch(20.06, 71.51, 303.23°)
OKLaboklab(32.77% 0.0047 -0.1732)
OKLCHoklch(32.77% 0.173 271.5)
XYZxyz(5.6047, 3.0034, 24.7054)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1D8B #8B8B1D
analogous
#1D548B #1D1D8B #541D8B
triadic
#1D1D8B #8B1D1D #1D8B1D
tetradic
#1D1D8B #8B1D54 #8B8B1D #1D8B54
square
#1D1D8B #8B1D54 #8B8B1D #1D8B54
split-complementary
#1D1D8B #8B541D #548B1D
monochromatic
#080826 #121258 #1D1D8B #2828BE #4949D9

Accessibility & contrast

On white

13.12
#1D1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1D1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1D8B
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1D8B#FFFFFF#000000##FFFFFF
##1D1D8B1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d1d8b;
/* rgb */ color: rgb(29, 29, 139);
/* oklch */ color: oklch(32.8% 0.173 271.5);
Tailwind
colors: {
  custom: {
    50: '#6e5bae',
    500: '#1d1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1d8b;
$custom-light: #6e5bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1d8b",
  "rgb": {
    "r": 29,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 240,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.32767,
    "c": 0.17323,
    "h": 271.5
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#1D1D8B
secondary
#BBBB49
accent
#E83FE8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1D1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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