#1D1B7D#1D1B7D

#1D1B7D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.157 H 273.1°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#1D1B7D
RGBrgb(29, 27, 125)
HSLhsl(241, 64%, 30%)
HSVhsv(241, 78%, 49%)
CMYKcmyk(76.8%, 78.4%, 0%, 51%)
CIE-LABlab(18.03, 35.51, -54.33)
CIE-LCHlch(18.03, 64.91, 303.17°)
OKLaboklab(30.86% 0.0084 -0.1572)
OKLCHoklch(30.86% 0.157 273.1)
XYZxyz(4.5991, 2.5253, 19.6431)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1B7D #7B7D1B
analogous
#1B4A7D #1D1B7D #4E1B7D
triadic
#1D1B7D #7D1D1B #1B7D1D
tetradic
#1D1B7D #7D1B4A #7B7D1B #1B7D4E
square
#1D1B7D #7D1B4A #7B7D1B #1B7D4E
split-complementary
#1D1B7D #7D4E1B #4A7D1B
monochromatic
#060519 #11104B #1D1B7D #2926AF #403DD5

Accessibility & contrast

On white

13.95
#1D1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1D1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1B7D
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1B7D#FFFFFF#000000##FFFFFF
##1D1B7D1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1d1b7d;
/* rgb */ color: rgb(29, 27, 125);
/* oklch */ color: oklch(30.9% 0.157 273.1);
Tailwind
colors: {
  custom: {
    50: '#6b59a4',
    500: '#1d1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #1d1b7d;
$custom-light: #6b59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1b7d",
  "rgb": {
    "r": 29,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 241.224,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30862,
    "c": 0.15745,
    "h": 273.1
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#1D1B7D
secondary
#AFB143
accent
#E740E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1D1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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