#2A0D40#2A0D40

#2A0D40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.7% C 0.093 H 306.6°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#2A0D40
RGBrgb(42, 13, 64)
HSLhsl(274, 66%, 15%)
HSVhsv(274, 80%, 25%)
CMYKcmyk(34.4%, 79.7%, 0%, 74.9%)
CIE-LABlab(10.19, 25.72, -26.30)
CIE-LCHlch(10.19, 36.79, 314.36°)
OKLaboklab(23.71% 0.0554 -0.0747)
OKLCHoklch(23.71% 0.093 306.6)
XYZxyz(2.0240, 1.1503, 4.9649)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D40 #23400D
analogous
#110D40 #2A0D40 #400D3C
triadic
#2A0D40 #402A0D #0D402A
tetradic
#2A0D40 #40110D #23400D #0D3C40
square
#2A0D40 #40110D #23400D #0D3C40
split-complementary
#2A0D40 #3C400D #0D4011
monochromatic
#110519 #110519 #2A0D40 #4B1773 #6D22A6

Accessibility & contrast

On white

17.07
#2A0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0D40
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D40#FFFFFF#000000##FFFFFF
##2A0D401.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#261925
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0d40;
/* rgb */ color: rgb(42, 13, 64);
/* oklch */ color: oklch(23.7% 0.093 306.6);
Tailwind
colors: {
  custom: {
    50: '#664e75',
    500: '#2a0d40',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d40;
$custom-light: #664e75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d40",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 274.118,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23712,
    "c": 0.09295,
    "h": 306.6
  },
  "luminance": 0.0115
}

Semantic roles & 50–950 ramp

primary
#2A0D40
secondary
#4F7C2D
accent
#E93F88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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