#2A0D4F#2A0D4F

#2A0D4F is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.111 H 297.6°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#2A0D4F
RGBrgb(42, 13, 79)
HSLhsl(266, 72%, 18%)
HSVhsv(266, 84%, 31%)
CMYKcmyk(46.8%, 83.5%, 0%, 69%)
CIE-LABlab(11.58, 29.99, -34.51)
CIE-LCHlch(11.58, 45.72, 311.00°)
OKLaboklab(25.14% 0.0517 -0.0988)
OKLCHoklch(25.14% 0.111 297.6)
XYZxyz(2.5097, 1.3446, 7.5229)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D4F #324F0D
analogous
#0D114F #2A0D4F #4B0D4F
triadic
#2A0D4F #4F2A0D #0D4F2A
tetradic
#2A0D4F #4F0D11 #324F0D #0D4F4B
square
#2A0D4F #4F0D11 #324F0D #0D4F4B
split-complementary
#2A0D4F #4F4B0D #114F0D
monochromatic
#0E041A #0E041A #2A0D4F #461684 #621EB8

Accessibility & contrast

On white

16.55
#2A0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2A0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0D4F
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D4F#FFFFFF#000000##FFFFFF
##2A0D4F1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#201F2D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2a0d4f;
/* rgb */ color: rgb(42, 13, 79);
/* oklch */ color: oklch(25.1% 0.111 297.6);
Tailwind
colors: {
  custom: {
    50: '#684f81',
    500: '#2a0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d4f;
$custom-light: #684f81;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d4f",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 266.364,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25136,
    "c": 0.11148,
    "h": 297.6
  },
  "luminance": 0.01345
}

Semantic roles & 50–950 ramp

primary
#2A0D4F
secondary
#618A2E
accent
#EE399F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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