#2A0D52#2A0D52

#2A0D52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.115 H 296.2°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#2A0D52
RGBrgb(42, 13, 82)
HSLhsl(265, 73%, 19%)
HSVhsv(265, 84%, 32%)
CMYKcmyk(48.8%, 84.1%, 0%, 67.8%)
CIE-LABlab(11.89, 30.87, -36.07)
CIE-LCHlch(11.89, 47.48, 310.56°)
OKLaboklab(25.44% 0.0508 -0.1034)
OKLCHoklch(25.44% 0.115 296.2)
XYZxyz(2.6214, 1.3892, 8.1110)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D52 #35520D
analogous
#0D1252 #2A0D52 #4C0D52
triadic
#2A0D52 #522A0D #0D522A
tetradic
#2A0D52 #520D12 #35520D #0D524C
square
#2A0D52 #520D12 #35520D #0D524C
split-complementary
#2A0D52 #524C0D #12520D
monochromatic
#0E041A #0F051D #2A0D52 #451587 #601EBC

Accessibility & contrast

On white

16.43
#2A0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0D52
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D52#FFFFFF#000000##FFFFFF
##2A0D521.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#1F202F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0d52;
/* rgb */ color: rgb(42, 13, 82);
/* oklch */ color: oklch(25.4% 0.115 296.2);
Tailwind
colors: {
  custom: {
    50: '#694f83',
    500: '#2a0d52',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d52;
$custom-light: #694f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d52",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 265.217,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2544,
    "c": 0.11515,
    "h": 296.2
  },
  "luminance": 0.01389
}

Semantic roles & 50–950 ramp

primary
#2A0D52
secondary
#658D2E
accent
#EF38A2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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