#1D1281#1D1281

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

Color values

HEX#1D1281
RGBrgb(29, 18, 129)
HSLhsl(246, 76%, 29%)
HSVhsv(246, 86%, 51%)
CMYKcmyk(77.5%, 86%, 0%, 49.4%)
CIE-LABlab(16.88, 41.57, -58.78)
CIE-LCHlch(16.88, 71.99, 305.27°)
OKLaboklab(30.2% 0.0108 -0.17)
OKLCHoklch(30.2% 0.17 273.6)
XYZxyz(4.6841, 2.2783, 20.9575)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1281 #768112
analogous
#123F81 #1D1281 #551281
triadic
#1D1281 #811D12 #12811D
tetradic
#1D1281 #81123F #768112 #128155
square
#1D1281 #81123F #768112 #128155
split-complementary
#1D1281 #815512 #3F8112
monochromatic
#06041B #110B4B #1D1281 #2919B7 #3E2CE2

Accessibility & contrast

On white

14.43
#1D1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D1281
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1281#FFFFFF#000000##FFFFFF
##1D12811.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d1281;
/* rgb */ color: rgb(29, 18, 129);
/* oklch */ color: oklch(30.2% 0.170 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c54a7',
    500: '#1d1281',
    950: '#000000',
  },
}
SCSS
$custom: #1d1281;
$custom-light: #6c54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1281",
  "rgb": {
    "r": 29,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 245.946,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30203,
    "c": 0.17032,
    "h": 273.6
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#1D1281
secondary
#AAB738
accent
#F236DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1D1281

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

Preview Lab → · Contrast checker → · Palette generator →

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