#2D12A1#2D12A1

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

Color values

HEX#2D12A1
RGBrgb(45, 18, 161)
HSLhsl(251, 80%, 35%)
HSVhsv(251, 89%, 63%)
CMYKcmyk(72%, 88.8%, 0%, 36.9%)
CIE-LABlab(22.17, 52.09, -69.86)
CIE-LCHlch(22.17, 87.15, 306.71°)
OKLaboklab(35.29% 0.0237 -0.2018)
OKLCHoklch(35.29% 0.203 276.7)
XYZxyz(7.7294, 3.5630, 33.9917)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D12A1 #86A112
analogous
#123EA1 #2D12A1 #7512A1
triadic
#2D12A1 #A12D12 #12A12D
tetradic
#2D12A1 #A1123E #86A112 #12A175
square
#2D12A1 #A1123E #86A112 #12A175
split-complementary
#2D12A1 #A17512 #3EA112
monochromatic
#0E0633 #1E0C6A #2D12A1 #3C18D8 #6343EA

Accessibility & contrast

On white

12.26
#2D12A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D12A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D12A1
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D12A1#FFFFFF#000000##FFFFFF
##2D12A11.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.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: #2d12a1;
/* rgb */ color: rgb(45, 18, 161);
/* oklch */ color: oklch(35.3% 0.203 276.7);
Tailwind
colors: {
  custom: {
    50: '#7a58be',
    500: '#2d12a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d12a1;
$custom-light: #7a58be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d12a1",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 161
  },
  "hsl": {
    "h": 251.329,
    "s": 79.888,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35293,
    "c": 0.20317,
    "h": 276.7
  },
  "luminance": 0.03564
}

Semantic roles & 50–950 ramp

primary
#2D12A1
secondary
#B1CA45
accent
#F631D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D12A1

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

Preview Lab → · Contrast checker → · Palette generator →

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