#2A0F41#2A0F41

#2A0F41 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.091 H 305.3°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#2A0F41
RGBrgb(42, 15, 65)
HSLhsl(272, 63%, 16%)
HSVhsv(272, 77%, 25%)
CMYKcmyk(35.4%, 76.9%, 0%, 74.5%)
CIE-LABlab(10.67, 24.88, -26.23)
CIE-LCHlch(10.67, 36.15, 313.49°)
OKLaboklab(24.09% 0.0526 -0.0744)
OKLCHoklch(24.09% 0.091 305.3)
XYZxyz(2.0796, 1.2156, 5.1251)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F41 #26410F
analogous
#110F41 #2A0F41 #410F3F
triadic
#2A0F41 #412A0F #0F412A
tetradic
#2A0F41 #41110F #26410F #0F3F41
square
#2A0F41 #41110F #26410F #0F3F41
split-complementary
#2A0F41 #3F410F #0F4111
monochromatic
#100619 #100619 #2A0F41 #4A1A73 #6A26A4

Accessibility & contrast

On white

16.89
#2A0F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2A0F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F41
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F41#FFFFFF#000000##FFFFFF
##2A0F411.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C42
Deuteranopia (green-blind)
#021D40
Tritanopia (blue-blind)
#261A26
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a0f41;
/* rgb */ color: rgb(42, 15, 65);
/* oklch */ color: oklch(24.1% 0.091 305.3);
Tailwind
colors: {
  custom: {
    50: '#664f76',
    500: '#2a0f41',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f41;
$custom-light: #664f76;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f41",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 65
  },
  "hsl": {
    "h": 272.4,
    "s": 62.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24087,
    "c": 0.09117,
    "h": 305.3
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#2A0F41
secondary
#537B30
accent
#E6428D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2A0F41

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

Preview Lab → · Contrast checker → · Palette generator →

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