#1D1381#1D1381

#1D1381 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.170 H 273.6°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#1D1381
RGBrgb(29, 19, 129)
HSLhsl(245, 74%, 29%)
HSVhsv(245, 85%, 51%)
CMYKcmyk(77.5%, 85.3%, 0%, 49.4%)
CIE-LABlab(17.04, 41.10, -58.51)
CIE-LCHlch(17.04, 71.51, 305.09°)
OKLaboklab(30.31% 0.0105 -0.1692)
OKLCHoklch(30.31% 0.17 273.6)
XYZxyz(4.7007, 2.3114, 20.9630)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1381 #778113
analogous
#134081 #1D1381 #541381
triadic
#1D1381 #811D13 #13811D
tetradic
#1D1381 #811340 #778113 #138154
square
#1D1381 #811340 #778113 #138154
split-complementary
#1D1381 #815413 #408113
monochromatic
#06041B #110B4C #1D1381 #291BB6 #3E2EE0

Accessibility & contrast

On white

14.36
#1D1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1D1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1381
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1381#FFFFFF#000000##FFFFFF
##1D13811.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1d1381;
/* rgb */ color: rgb(29, 19, 129);
/* oklch */ color: oklch(30.3% 0.170 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c55a7',
    500: '#1d1381',
    950: '#000000',
  },
}
SCSS
$custom: #1d1381;
$custom-light: #6c55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1381",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 245.455,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30313,
    "c": 0.16956,
    "h": 273.6
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#1D1381
secondary
#ABB63A
accent
#F137E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1381

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

Preview Lab → · Contrast checker → · Palette generator →

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