#2A0C41#2A0C41

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

Color values

HEX#2A0C41
RGBrgb(42, 12, 65)
HSLhsl(274, 69%, 15%)
HSVhsv(274, 82%, 25%)
CMYKcmyk(35.4%, 81.5%, 0%, 74.5%)
CIE-LABlab(10.08, 26.53, -27.18)
CIE-LCHlch(10.08, 37.98, 314.31°)
OKLaboklab(23.67% 0.0564 -0.0772)
OKLCHoklch(23.67% 0.096 306.1)
XYZxyz(2.0402, 1.1369, 5.1120)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C41 #23410C
analogous
#0F0C41 #2A0C41 #410C3E
triadic
#2A0C41 #412A0C #0C412A
tetradic
#2A0C41 #410F0C #23410C #0C3E41
square
#2A0C41 #410F0C #23410C #0C3E41
split-complementary
#2A0C41 #3E410C #0C410F
monochromatic
#11051A #11051A #2A0C41 #4B1675 #6D1FA8

Accessibility & contrast

On white

17.11
#2A0C41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C41
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C41#FFFFFF#000000##FFFFFF
##2A0C411.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#001C40
Tritanopia (blue-blind)
#261825
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0c41;
/* rgb */ color: rgb(42, 12, 65);
/* oklch */ color: oklch(23.7% 0.096 306.1);
Tailwind
colors: {
  custom: {
    50: '#664e76',
    500: '#2a0c41',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c41;
$custom-light: #664e76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c41",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 65
  },
  "hsl": {
    "h": 273.962,
    "s": 68.831,
    "l": 15.098
  },
  "oklch": {
    "l": 0.23667,
    "c": 0.09562,
    "h": 306.1
  },
  "luminance": 0.01137
}

Semantic roles & 50–950 ramp

primary
#2A0C41
secondary
#4F7D2C
accent
#EC3C88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0C41

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

Preview Lab → · Contrast checker → · Palette generator →

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