#2D13A1#2D13A1

#2D13A1 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.4% C 0.203 H 276.6°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2D13A1
RGBrgb(45, 19, 161)
HSLhsl(251, 79%, 35%)
HSVhsv(251, 88%, 63%)
CMYKcmyk(72%, 88.2%, 0%, 36.9%)
CIE-LABlab(22.29, 51.74, -69.67)
CIE-LCHlch(22.29, 86.78, 306.60°)
OKLaboklab(35.37% 0.0235 -0.2012)
OKLCHoklch(35.37% 0.203 276.6)
XYZxyz(7.7460, 3.5961, 33.9972)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D13A1 #87A113
analogous
#1340A1 #2D13A1 #7413A1
triadic
#2D13A1 #A12D13 #13A12D
tetradic
#2D13A1 #A11340 #87A113 #13A174
square
#2D13A1 #A11340 #87A113 #13A174
split-complementary
#2D13A1 #A17413 #40A113
monochromatic
#0E0634 #1E0D6A #2D13A1 #3C19D8 #6345E9

Accessibility & contrast

On white

12.21
#2D13A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2D13A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D13A1
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D13A1#FFFFFF#000000##FFFFFF
##2D13A11.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00435E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d13a1;
/* rgb */ color: rgb(45, 19, 161);
/* oklch */ color: oklch(35.4% 0.203 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a59be',
    500: '#2d13a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d13a1;
$custom-light: #7a59be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d13a1",
  "rgb": {
    "r": 45,
    "g": 19,
    "b": 161
  },
  "hsl": {
    "h": 250.986,
    "s": 78.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.20259,
    "h": 276.6
  },
  "luminance": 0.03597
}

Semantic roles & 50–950 ramp

primary
#2D13A1
secondary
#B2CA46
accent
#F532D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D13A1

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

Preview Lab → · Contrast checker → · Palette generator →

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