#2D1264#2D1264

#2D1264 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.132 H 290.3°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2D1264
RGBrgb(45, 18, 100)
HSLhsl(260, 69%, 23%)
HSVhsv(260, 82%, 39%)
CMYKcmyk(55%, 82%, 0%, 60.8%)
CIE-LABlab(15.01, 34.22, -43.04)
CIE-LCHlch(15.01, 54.99, 308.49°)
OKLaboklab(28.28% 0.0457 -0.1237)
OKLCHoklch(28.28% 0.132 290.3)
XYZxyz(3.5981, 1.9104, 12.2333)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1264 #496412
analogous
#122064 #2D1264 #561264
triadic
#2D1264 #642D12 #12642D
tetradic
#2D1264 #641220 #496412 #126456
square
#2D1264 #641220 #496412 #126456
split-complementary
#2D1264 #645612 #206412
monochromatic
#0C051A #160930 #2D1264 #441B98 #5C25CC

Accessibility & contrast

On white

15.19
#2D1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1264
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1264#FFFFFF#000000##FFFFFF
##2D12641.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#19293B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1264;
/* rgb */ color: rgb(45, 18, 100);
/* oklch */ color: oklch(28.3% 0.132 290.3);
Tailwind
colors: {
  custom: {
    50: '#6d5391',
    500: '#2d1264',
    950: '#000000',
  },
}
SCSS
$custom: #2d1264;
$custom-light: #6d5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1264",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 259.756,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2828,
    "c": 0.13187,
    "h": 290.3
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#2D1264
secondary
#7A9C36
accent
#EC3BB2
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2D1264

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

Preview Lab → · Contrast checker → · Palette generator →

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