#2D1EAD#2D1EAD

#2D1EAD is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.8% C 0.209 H 274.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#2D1EAD
RGBrgb(45, 30, 173)
HSLhsl(246, 70%, 40%)
HSVhsv(246, 83%, 68%)
CMYKcmyk(74%, 82.7%, 0%, 32.2%)
CIE-LABlab(25.27, 50.75, -71.99)
CIE-LCHlch(25.27, 88.08, 305.18°)
OKLaboklab(37.84% 0.0164 -0.2082)
OKLCHoklch(37.84% 0.209 274.5)
XYZxyz(9.0868, 4.5026, 39.9173)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1EAD #9EAD1E
analogous
#1E56AD #2D1EAD #751EAD
triadic
#2D1EAD #AD2D1E #1EAD2D
tetradic
#2D1EAD #AD1E56 #9EAD1E #1EAD75
square
#2D1EAD #AD1E56 #9EAD1E #1EAD75
split-complementary
#2D1EAD #AD751E #56AD1E
monochromatic
#120C45 #1F1579 #2D1EAD #402EDB #6F62E4

Accessibility & contrast

On white

11.05
#2D1EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D1EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1EAD
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1EAD#FFFFFF#000000##FFFFFF
##2D1EAD1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d1ead;
/* rgb */ color: rgb(45, 30, 173);
/* oklch */ color: oklch(37.8% 0.209 274.5);
Tailwind
colors: {
  custom: {
    50: '#7c5fc7',
    500: '#2d1ead',
    950: '#000000',
  },
}
SCSS
$custom: #2d1ead;
$custom-light: #7c5fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1ead",
  "rgb": {
    "r": 45,
    "g": 30,
    "b": 173
  },
  "hsl": {
    "h": 246.294,
    "s": 70.443,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37835,
    "c": 0.20881,
    "h": 274.5
  },
  "luminance": 0.04504
}

Semantic roles & 50–950 ramp

primary
#2D1EAD
secondary
#BDC85E
accent
#ED3BDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D1EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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