#2A0F54#2A0F54

#2A0F54 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.115 H 294.7°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2A0F54
RGBrgb(42, 15, 84)
HSLhsl(263, 70%, 19%)
HSVhsv(263, 82%, 33%)
CMYKcmyk(50%, 82.1%, 0%, 67.1%)
CIE-LABlab(12.44, 30.45, -36.53)
CIE-LCHlch(12.44, 47.56, 309.81°)
OKLaboklab(25.89% 0.0483 -0.1047)
OKLCHoklch(25.89% 0.115 294.7)
XYZxyz(2.7255, 1.4739, 8.5267)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F54 #39540F
analogous
#0F1754 #2A0F54 #4D0F54
triadic
#2A0F54 #542A0F #0F542A
tetradic
#2A0F54 #540F17 #39540F #0F544D
square
#2A0F54 #540F17 #39540F #0F544D
split-complementary
#2A0F54 #544D0F #17540F
monochromatic
#0D051A #100620 #2A0F54 #441888 #5E22BC

Accessibility & contrast

On white

16.22
#2A0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F54
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F54#FFFFFF#000000##FFFFFF
##2A0F541.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001F53
Tritanopia (blue-blind)
#1E2231
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a0f54;
/* rgb */ color: rgb(42, 15, 84);
/* oklch */ color: oklch(25.9% 0.115 294.7);
Tailwind
colors: {
  custom: {
    50: '#695185',
    500: '#2a0f54',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f54;
$custom-light: #695185;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f54",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 263.478,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25892,
    "c": 0.11529,
    "h": 294.7
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#2A0F54
secondary
#6A8E31
accent
#ED3BA7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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