#1D1B8B#1D1B8B

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

Color values

HEX#1D1B8B
RGBrgb(29, 27, 139)
HSLhsl(241, 67%, 33%)
HSVhsv(241, 81%, 55%)
CMYKcmyk(79.1%, 80.6%, 0%, 45.5%)
CIE-LABlab(19.67, 40.30, -60.45)
CIE-LCHlch(19.67, 72.65, 303.69°)
OKLaboklab(32.5% 0.0054 -0.175)
OKLCHoklch(32.5% 0.175 271.8)
XYZxyz(5.5573, 2.9085, 24.6896)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B8B #898B1B
analogous
#1B518B #1D1B8B #551B8B
triadic
#1D1B8B #8B1D1B #1B8B1D
tetradic
#1D1B8B #8B1B51 #898B1B #1B8B55
square
#1D1B8B #8B1B51 #898B1B #1B8B55
split-complementary
#1D1B8B #8B551B #518B1B
monochromatic
#080725 #121158 #1D1B8B #2825BE #4845DB

Accessibility & contrast

On white

13.28
#1D1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1B8B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B8B#FFFFFF#000000##FFFFFF
##1D1B8B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1d1b8b;
/* rgb */ color: rgb(29, 27, 139);
/* oklch */ color: oklch(32.5% 0.175 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e5aae',
    500: '#1d1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b8b;
$custom-light: #6e5aae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b8b",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 241.071,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32498,
    "c": 0.17507,
    "h": 271.8
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#1D1B8B
secondary
#BABC45
accent
#EA3DE7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #1D1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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