#2A0F5B#2A0F5B

#2A0F5B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.124 H 291.8°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2A0F5B
RGBrgb(42, 15, 91)
HSLhsl(261, 72%, 21%)
HSVhsv(261, 84%, 36%)
CMYKcmyk(53.8%, 83.5%, 0%, 64.3%)
CIE-LABlab(13.16, 32.55, -40.08)
CIE-LCHlch(13.16, 51.63, 309.08°)
OKLaboklab(26.62% 0.046 -0.1151)
OKLCHoklch(26.62% 0.124 291.8)
XYZxyz(3.0135, 1.5891, 10.0434)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F5B #405B0F
analogous
#0F1A5B #2A0F5B #500F5B
triadic
#2A0F5B #5B2A0F #0F5B2A
tetradic
#2A0F5B #5B0F1A #405B0F #0F5B50
square
#2A0F5B #5B0F1A #405B0F #0F5B50
split-complementary
#2A0F5B #5B500F #1A5B0F
monochromatic
#0C041A #120626 #2A0F5B #421890 #5A20C4

Accessibility & contrast

On white

15.94
#2A0F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2A0F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F5B
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F5B#FFFFFF#000000##FFFFFF
##2A0F5B1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#192535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a0f5b;
/* rgb */ color: rgb(42, 15, 91);
/* oklch */ color: oklch(26.6% 0.124 291.8);
Tailwind
colors: {
  custom: {
    50: '#6a518a',
    500: '#2a0f5b',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f5b;
$custom-light: #6a518a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f5b",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 261.316,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26618,
    "c": 0.12398,
    "h": 291.8
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#2A0F5B
secondary
#719531
accent
#EE39AE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A0F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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