#2A0F4A#2A0F4A

#2A0F4A is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.103 H 299.7°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#2A0F4A
RGBrgb(42, 15, 74)
HSLhsl(267, 66%, 17%)
HSVhsv(267, 80%, 29%)
CMYKcmyk(43.2%, 79.7%, 0%, 71%)
CIE-LABlab(11.47, 27.48, -31.24)
CIE-LCHlch(11.47, 41.61, 311.34°)
OKLaboklab(24.91% 0.0509 -0.0892)
OKLCHoklch(24.91% 0.103 299.7)
XYZxyz(2.3614, 1.3283, 6.6092)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F4A #2F4A0F
analogous
#0F114A #2A0F4A #480F4A
triadic
#2A0F4A #4A2A0F #0F4A2A
tetradic
#2A0F4A #4A0F11 #2F4A0F #0F4A48
square
#2A0F4A #4A0F11 #2F4A0F #0F4A48
split-complementary
#2A0F4A #4A480F #114A0F
monochromatic
#0E0519 #0E0519 #2A0F4A #47197D #6424B0

Accessibility & contrast

On white

16.59
#2A0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F4A
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F4A#FFFFFF#000000##FFFFFF
##2A0F4A1.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#231E2B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0f4a;
/* rgb */ color: rgb(42, 15, 74);
/* oklch */ color: oklch(24.9% 0.103 299.7);
Tailwind
colors: {
  custom: {
    50: '#67507d',
    500: '#2a0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f4a;
$custom-light: #67507d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f4a",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 267.458,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24908,
    "c": 0.10268,
    "h": 299.7
  },
  "luminance": 0.01328
}

Semantic roles & 50–950 ramp

primary
#2A0F4A
secondary
#5E8430
accent
#E93F9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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