#2A0F6A#2A0F6A

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

Color values

HEX#2A0F6A
RGBrgb(42, 15, 106)
HSLhsl(258, 75%, 24%)
HSVhsv(258, 86%, 42%)
CMYKcmyk(60.4%, 85.8%, 0%, 58.4%)
CIE-LABlab(14.81, 37.04, -47.33)
CIE-LCHlch(14.81, 60.10, 308.05°)
OKLaboklab(28.26% 0.0406 -0.1363)
OKLCHoklch(28.26% 0.142 286.6)
XYZxyz(3.7264, 1.8743, 13.7983)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F6A #4F6A0F
analogous
#0F216A #2A0F6A #570F6A
triadic
#2A0F6A #6A2A0F #0F6A2A
tetradic
#2A0F6A #6A0F21 #4F6A0F #0F6A57
square
#2A0F6A #6A0F21 #4F6A0F #0F6A57
split-complementary
#2A0F6A #6A570F #216A0F
monochromatic
#0B041B #150734 #2A0F6A #3F17A0 #541ED5

Accessibility & contrast

On white

15.27
#2A0F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A0F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F6A
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F6A#FFFFFF#000000##FFFFFF
##2A0F6A1.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#0A2B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a0f6a;
/* rgb */ color: rgb(42, 15, 106);
/* oklch */ color: oklch(28.3% 0.142 286.6);
Tailwind
colors: {
  custom: {
    50: '#6d5296',
    500: '#2a0f6a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f6a;
$custom-light: #6d5296;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f6a",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 257.802,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28257,
    "c": 0.14225,
    "h": 286.6
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#2A0F6A
secondary
#81A232
accent
#F236BA
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2A0F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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