#2D14A1#2D14A1

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

Color values

HEX#2D14A1
RGBrgb(45, 20, 161)
HSLhsl(251, 78%, 35%)
HSVhsv(251, 88%, 63%)
CMYKcmyk(72%, 87.6%, 0%, 36.9%)
CIE-LABlab(22.41, 51.38, -69.46)
CIE-LCHlch(22.41, 86.40, 306.49°)
OKLaboklab(35.46% 0.0232 -0.2007)
OKLCHoklch(35.46% 0.202 276.6)
XYZxyz(7.7633, 3.6307, 34.0030)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D14A1 #88A114
analogous
#1442A1 #2D14A1 #7314A1
triadic
#2D14A1 #A12D14 #14A12D
tetradic
#2D14A1 #A11442 #88A114 #14A173
square
#2D14A1 #A11442 #88A114 #14A173
split-complementary
#2D14A1 #A17314 #42A114
monochromatic
#0F0634 #1E0D6B #2D14A1 #3C1BD7 #6447E8

Accessibility & contrast

On white

12.17
#2D14A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D14A1
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D14A1#FFFFFF#000000##FFFFFF
##2D14A11.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002F9F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2d14a1;
/* rgb */ color: rgb(45, 20, 161);
/* oklch */ color: oklch(35.5% 0.202 276.6);
Tailwind
colors: {
  custom: {
    50: '#7a59be',
    500: '#2d14a1',
    950: '#000000',
  },
}
SCSS
$custom: #2d14a1;
$custom-light: #7a59be;
$custom-dark: #000000;
JSON
{
  "hex": "#2d14a1",
  "rgb": {
    "r": 45,
    "g": 20,
    "b": 161
  },
  "hsl": {
    "h": 250.638,
    "s": 77.901,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35456,
    "c": 0.20199,
    "h": 276.6
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#2D14A1
secondary
#B2C948
accent
#F433D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D14A1

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

Preview Lab → · Contrast checker → · Palette generator →

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