#2A0C4F#2A0C4F

#2A0C4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.0% C 0.113 H 297.9°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#2A0C4F
RGBrgb(42, 12, 79)
HSLhsl(267, 74%, 18%)
HSVhsv(267, 85%, 31%)
CMYKcmyk(46.8%, 84.8%, 0%, 69%)
CIE-LABlab(11.41, 30.48, -34.79)
CIE-LCHlch(11.41, 46.26, 311.23°)
OKLaboklab(25.02% 0.0527 -0.0996)
OKLCHoklch(25.02% 0.113 297.9)
XYZxyz(2.4972, 1.3197, 7.5188)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C4F #314F0C
analogous
#0C0F4F #2A0C4F #4B0C4F
triadic
#2A0C4F #4F2A0C #0C4F2A
tetradic
#2A0C4F #4F0C0F #314F0C #0C4F4B
square
#2A0C4F #4F0C0F #314F0C #0C4F4B
split-complementary
#2A0C4F #4F4B0C #0F4F0C
monochromatic
#0E041B #0E041B #2A0C4F #461484 #621CB9

Accessibility & contrast

On white

16.61
#2A0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2A0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C4F
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C4F#FFFFFF#000000##FFFFFF
##2A0C4F1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#201E2D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0c4f;
/* rgb */ color: rgb(42, 12, 79);
/* oklch */ color: oklch(25.0% 0.113 297.9);
Tailwind
colors: {
  custom: {
    50: '#684f81',
    500: '#2a0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c4f;
$custom-light: #684f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c4f",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 266.866,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25016,
    "c": 0.11264,
    "h": 297.9
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#2A0C4F
secondary
#608B2C
accent
#F0389E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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