#2D1D81#2D1D81

#2D1D81 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 280.6°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2D1D81
RGBrgb(45, 29, 129)
HSLhsl(250, 63%, 31%)
HSVhsv(250, 78%, 51%)
CMYKcmyk(65.1%, 77.5%, 0%, 49.4%)
CIE-LABlab(20.13, 37.47, -53.37)
CIE-LCHlch(20.13, 65.21, 305.07°)
OKLaboklab(32.79% 0.0289 -0.154)
OKLCHoklch(32.79% 0.157 280.6)
XYZxyz(5.4827, 3.0212, 21.0588)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1D81 #71811D
analogous
#1D3F81 #2D1D81 #5F1D81
triadic
#2D1D81 #812D1D #1D812D
tetradic
#2D1D81 #811D3F #71811D #1D815F
square
#2D1D81 #811D3F #71811D #1D815F
split-complementary
#2D1D81 #815F1D #3F811D
monochromatic
#0A071D #1C124F #2D1D81 #3E28B3 #5B44D5

Accessibility & contrast

On white

13.09
#2D1D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2D1D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1D81
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1D81#FFFFFF#000000##FFFFFF
##2D1D811.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d1d81;
/* rgb */ color: rgb(45, 29, 129);
/* oklch */ color: oklch(32.8% 0.157 280.6);
Tailwind
colors: {
  custom: {
    50: '#725ba7',
    500: '#2d1d81',
    950: '#000000',
  },
}
SCSS
$custom: #2d1d81;
$custom-light: #725ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1d81",
  "rgb": {
    "r": 45,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 249.6,
    "s": 63.291,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32794,
    "c": 0.15669,
    "h": 280.6
  },
  "luminance": 0.03022
}

Semantic roles & 50–950 ramp

primary
#2D1D81
secondary
#A3B446
accent
#E641CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2D1D81

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

Preview Lab → · Contrast checker → · Palette generator →

#2D1D81 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva