#2D16A0#2D16A0

#2D16A0 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.200 H 276.6°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2D16A0
RGBrgb(45, 22, 160)
HSLhsl(250, 76%, 36%)
HSVhsv(250, 86%, 63%)
CMYKcmyk(71.9%, 86.3%, 0%, 37.3%)
CIE-LABlab(22.55, 50.32, -68.63)
CIE-LCHlch(22.55, 85.10, 306.25°)
OKLaboklab(35.51% 0.0229 -0.1983)
OKLCHoklch(35.51% 0.2 276.6)
XYZxyz(7.7122, 3.6690, 33.5527)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D16A0 #89A016
analogous
#1644A0 #2D16A0 #7216A0
triadic
#2D16A0 #A02D16 #16A02D
tetradic
#2D16A0 #A01644 #89A016 #16A072
square
#2D16A0 #A01644 #89A016 #16A072
split-complementary
#2D16A0 #A07216 #44A016
monochromatic
#0F0734 #1E0F6A #2D16A0 #3C1DD6 #644AE6

Accessibility & contrast

On white

12.11
#2D16A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2D16A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D16A0
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D16A0#FFFFFF#000000##FFFFFF
##2D16A01.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d16a0;
/* rgb */ color: rgb(45, 22, 160);
/* oklch */ color: oklch(35.5% 0.200 276.6);
Tailwind
colors: {
  custom: {
    50: '#795abe',
    500: '#2d16a0',
    950: '#000000',
  },
}
SCSS
$custom: #2d16a0;
$custom-light: #795abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2d16a0",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 160
  },
  "hsl": {
    "h": 250,
    "s": 75.824,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35513,
    "c": 0.1996,
    "h": 276.6
  },
  "luminance": 0.0367
}

Semantic roles & 50–950 ramp

primary
#2D16A0
secondary
#B3C84A
accent
#F235D3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D16A0

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

Preview Lab → · Contrast checker → · Palette generator →

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