#2D1266#2D1266

#2D1266 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.134 H 289.6°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2D1266
RGBrgb(45, 18, 102)
HSLhsl(259, 70%, 24%)
HSVhsv(259, 82%, 40%)
CMYKcmyk(55.9%, 82.4%, 0%, 60%)
CIE-LABlab(15.22, 34.83, -44.02)
CIE-LCHlch(15.22, 56.13, 308.35°)
OKLaboklab(28.49% 0.045 -0.1266)
OKLCHoklch(28.49% 0.134 289.6)
XYZxyz(3.6961, 1.9496, 12.7494)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1266 #4B6612
analogous
#122166 #2D1266 #571266
triadic
#2D1266 #662D12 #12662D
tetradic
#2D1266 #661221 #4B6612 #126657
square
#2D1266 #661221 #4B6612 #126657
split-complementary
#2D1266 #665712 #216612
monochromatic
#0B051A #160932 #2D1266 #441B9A #5B24CE

Accessibility & contrast

On white

15.11
#2D1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1266
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1266#FFFFFF#000000##FFFFFF
##2D12661.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#172A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d1266;
/* rgb */ color: rgb(45, 18, 102);
/* oklch */ color: oklch(28.5% 0.134 289.6);
Tailwind
colors: {
  custom: {
    50: '#6d5493',
    500: '#2d1266',
    950: '#000000',
  },
}
SCSS
$custom: #2d1266;
$custom-light: #6d5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1266",
  "rgb": {
    "r": 45,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 259.286,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28491,
    "c": 0.13433,
    "h": 289.6
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#2D1266
secondary
#7C9E36
accent
#ED3BB4
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2D1266

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

Preview Lab → · Contrast checker → · Palette generator →

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