#2A0F50#2A0F50

#2A0F50 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.110 H 296.6°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#2A0F50
RGBrgb(42, 15, 80)
HSLhsl(265, 68%, 19%)
HSVhsv(265, 81%, 31%)
CMYKcmyk(47.5%, 81.3%, 0%, 68.6%)
CIE-LABlab(12.04, 29.26, -34.44)
CIE-LCHlch(12.04, 45.19, 310.35°)
OKLaboklab(25.49% 0.0494 -0.0986)
OKLCHoklch(25.49% 0.11 296.6)
XYZxyz(2.5733, 1.4130, 7.7250)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F50 #35500F
analogous
#0F1450 #2A0F50 #4A0F50
triadic
#2A0F50 #502A0F #0F502A
tetradic
#2A0F50 #500F14 #35500F #0F504A
square
#2A0F50 #500F14 #35500F #0F504A
split-complementary
#2A0F50 #504A0F #14500F
monochromatic
#0E051A #0F051C #2A0F50 #451984 #6022B7

Accessibility & contrast

On white

16.37
#2A0F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F50
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F50#FFFFFF#000000##FFFFFF
##2A0F501.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#001F4F
Tritanopia (blue-blind)
#20202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a0f50;
/* rgb */ color: rgb(42, 15, 80);
/* oklch */ color: oklch(25.5% 0.110 296.6);
Tailwind
colors: {
  custom: {
    50: '#685082',
    500: '#2a0f50',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f50;
$custom-light: #685082;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f50",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 264.923,
    "s": 68.421,
    "l": 18.627
  },
  "oklch": {
    "l": 0.2549,
    "c": 0.11027,
    "h": 296.6
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#2A0F50
secondary
#658A31
accent
#EB3DA3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F50

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

Preview Lab → · Contrast checker → · Palette generator →

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