#2D1052#2D1052

#2D1052 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.112 H 298.2°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#2D1052
RGBrgb(45, 16, 82)
HSLhsl(266, 67%, 19%)
HSVhsv(266, 80%, 32%)
CMYKcmyk(45.1%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.85, 29.91, -34.49)
CIE-LCHlch(12.85, 45.65, 310.93°)
OKLaboklab(26.21% 0.0529 -0.0986)
OKLCHoklch(26.21% 0.112 298.2)
XYZxyz(2.7901, 1.5376, 8.1308)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1052 #355210
analogous
#101452 #2D1052 #4E1052
triadic
#2D1052 #522D10 #10522D
tetradic
#2D1052 #521014 #355210 #10524E
square
#2D1052 #521014 #355210 #10524E
split-complementary
#2D1052 #524E10 #145210
monochromatic
#0E051A #11061F #2D1052 #491A85 #6524B8

Accessibility & contrast

On white

16.06
#2D1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2D1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1052
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1052#FFFFFF#000000##FFFFFF
##2D10521.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#242130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d1052;
/* rgb */ color: rgb(45, 16, 82);
/* oklch */ color: oklch(26.2% 0.112 298.2);
Tailwind
colors: {
  custom: {
    50: '#6a5183',
    500: '#2d1052',
    950: '#000000',
  },
}
SCSS
$custom: #2d1052;
$custom-light: #6a5183;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1052",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 266.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26208,
    "c": 0.11189,
    "h": 298.2
  },
  "luminance": 0.01538
}

Semantic roles & 50–950 ramp

primary
#2D1052
secondary
#648C32
accent
#EA3E9E
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2D1052

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

Preview Lab → · Contrast checker → · Palette generator →

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