#2A0A40#2A0A40

#2A0A40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.097 H 307.3°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#2A0A40
RGBrgb(42, 10, 64)
HSLhsl(276, 73%, 15%)
HSVhsv(276, 84%, 25%)
CMYKcmyk(34.4%, 84.4%, 0%, 74.9%)
CIE-LABlab(9.64, 27.27, -27.19)
CIE-LCHlch(9.64, 38.51, 315.08°)
OKLaboklab(23.32% 0.0589 -0.0772)
OKLCHoklch(23.32% 0.097 307.3)
XYZxyz(1.9886, 1.0795, 4.9531)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A40 #20400A
analogous
#0F0A40 #2A0A40 #400A3B
triadic
#2A0A40 #402A0A #0A402A
tetradic
#2A0A40 #400F0A #20400A #0A3B40
square
#2A0A40 #400F0A #20400A #0A3B40
split-complementary
#2A0A40 #3B400A #0A400F
monochromatic
#11041A #11041A #2A0A40 #4D1275 #6F1BAA

Accessibility & contrast

On white

17.27
#2A0A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A40
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A40#FFFFFF#000000##FFFFFF
##2A0A401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#001B3F
Tritanopia (blue-blind)
#261724
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0a40;
/* rgb */ color: rgb(42, 10, 64);
/* oklch */ color: oklch(23.3% 0.097 307.3);
Tailwind
colors: {
  custom: {
    50: '#664d75',
    500: '#2a0a40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a40;
$custom-light: #664d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a40",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 64
  },
  "hsl": {
    "h": 275.556,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23323,
    "c": 0.09716,
    "h": 307.3
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#2A0A40
secondary
#4B7D29
accent
#F03883
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0A40

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

Preview Lab → · Contrast checker → · Palette generator →

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