#2A0B40#2A0B40

#2A0B40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.096 H 307.1°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#2A0B40
RGBrgb(42, 11, 64)
HSLhsl(275, 71%, 15%)
HSVhsv(275, 83%, 25%)
CMYKcmyk(34.4%, 82.8%, 0%, 74.9%)
CIE-LABlab(9.81, 26.77, -26.91)
CIE-LCHlch(9.81, 37.96, 314.85°)
OKLaboklab(23.45% 0.0578 -0.0764)
OKLCHoklch(23.45% 0.096 307.1)
XYZxyz(1.9997, 1.1018, 4.9568)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0B40 #21400B
analogous
#0F0B40 #2A0B40 #400B3C
triadic
#2A0B40 #402A0B #0B402A
tetradic
#2A0B40 #400F0B #21400B #0B3C40
square
#2A0B40 #400F0B #21400B #0B3C40
split-complementary
#2A0B40 #3C400B #0B400F
monochromatic
#11041A #11041A #2A0B40 #4C1474 #6F1DA8

Accessibility & contrast

On white

17.21
#2A0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0B40
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0B40#FFFFFF#000000##FFFFFF
##2A0B401.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a0b40;
/* rgb */ color: rgb(42, 11, 64);
/* oklch */ color: oklch(23.4% 0.096 307.1);
Tailwind
colors: {
  custom: {
    50: '#664d75',
    500: '#2a0b40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0b40;
$custom-light: #664d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0b40",
  "rgb": {
    "r": 42,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 275.094,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23447,
    "c": 0.0958,
    "h": 307.1
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#2A0B40
secondary
#4C7D2A
accent
#ED3A85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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