#2A0E51#2A0E51

#2A0E51 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.113 H 296.4°. Best body text is #FFFFFF at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#2A0E51
RGBrgb(42, 14, 81)
HSLhsl(265, 71%, 19%)
HSVhsv(265, 83%, 32%)
CMYKcmyk(48.1%, 82.7%, 0%, 68.2%)
CIE-LABlab(11.96, 30.07, -35.27)
CIE-LCHlch(11.96, 46.35, 310.46°)
OKLaboklab(25.46% 0.0501 -0.101)
OKLCHoklch(25.46% 0.113 296.4)
XYZxyz(2.5967, 1.4003, 7.9165)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0E51 #35510E
analogous
#0E1351 #2A0E51 #4B0E51
triadic
#2A0E51 #512A0E #0E512A
tetradic
#2A0E51 #510E13 #35510E #0E514B
square
#2A0E51 #510E13 #35510E #0E514B
split-complementary
#2A0E51 #514B0E #13510E
monochromatic
#0E051A #0F051D #2A0E51 #451785 #6020B9

Accessibility & contrast

On white

16.41
#2A0E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A0E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0E51
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0E51#FFFFFF#000000##FFFFFF
##2A0E511.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#1F202F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0e51;
/* rgb */ color: rgb(42, 14, 81);
/* oklch */ color: oklch(25.5% 0.113 296.4);
Tailwind
colors: {
  custom: {
    50: '#685082',
    500: '#2a0e51',
    950: '#000000',
  },
}
SCSS
$custom: #2a0e51;
$custom-light: #685082;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0e51",
  "rgb": {
    "r": 42,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 265.075,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25461,
    "c": 0.11275,
    "h": 296.4
  },
  "luminance": 0.014
}

Semantic roles & 50–950 ramp

primary
#2A0E51
secondary
#658C2F
accent
#ED3AA3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2A0E51

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

Preview Lab → · Contrast checker → · Palette generator →

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