#2A0F5A#2A0F5A

#2A0F5A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.123 H 292.2°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2A0F5A
RGBrgb(42, 15, 90)
HSLhsl(262, 71%, 21%)
HSVhsv(262, 83%, 35%)
CMYKcmyk(53.3%, 83.3%, 0%, 64.7%)
CIE-LABlab(13.06, 32.24, -39.58)
CIE-LCHlch(13.06, 51.05, 309.17°)
OKLaboklab(26.51% 0.0464 -0.1137)
OKLCHoklch(26.51% 0.123 292.2)
XYZxyz(2.9706, 1.5720, 9.8178)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F5A #3F5A0F
analogous
#0F195A #2A0F5A #4F0F5A
triadic
#2A0F5A #5A2A0F #0F5A2A
tetradic
#2A0F5A #5A0F19 #3F5A0F #0F5A4F
square
#2A0F5A #5A0F19 #3F5A0F #0F5A4F
split-complementary
#2A0F5A #5A4F0F #195A0F
monochromatic
#0C041A #120626 #2A0F5A #42188E #5B20C3

Accessibility & contrast

On white

15.98
#2A0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0F5A
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F5A#FFFFFF#000000##FFFFFF
##2A0F5A1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#1A2434
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a0f5a;
/* rgb */ color: rgb(42, 15, 90);
/* oklch */ color: oklch(26.5% 0.123 292.2);
Tailwind
colors: {
  custom: {
    50: '#6a5189',
    500: '#2a0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f5a;
$custom-light: #6a5189;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f5a",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 261.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26512,
    "c": 0.12275,
    "h": 292.2
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2A0F5A
secondary
#709431
accent
#EE3AAD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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