#2A0D4C#2A0D4C

#2A0D4C is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.108 H 299.2°. Best body text is #FFFFFF at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#2A0D4C
RGBrgb(42, 13, 76)
HSLhsl(268, 71%, 17%)
HSVhsv(268, 83%, 30%)
CMYKcmyk(44.7%, 82.9%, 0%, 70.2%)
CIE-LABlab(11.29, 29.12, -32.92)
CIE-LCHlch(11.29, 43.95, 311.50°)
OKLaboklab(24.84% 0.0526 -0.0941)
OKLCHoklch(24.84% 0.108 299.2)
XYZxyz(2.4029, 1.3019, 6.9608)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0D4C #2F4C0D
analogous
#0D0F4C #2A0D4C #4A0D4C
triadic
#2A0D4C #4C2A0D #0D4C2A
tetradic
#2A0D4C #4C0D0F #2F4C0D #0D4C4A
square
#2A0D4C #4C0D0F #2F4C0D #0D4C4A
split-complementary
#2A0D4C #4C4A0D #0F4C0D
monochromatic
#0E041A #0E041A #2A0D4C #471680 #641FB5

Accessibility & contrast

On white

16.66
#2A0D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0D4C
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0D4C#FFFFFF#000000##FFFFFF
##2A0D4C1.0016.661.2616.66
#FFFFFF16.661.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001D4B
Tritanopia (blue-blind)
#221D2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0d4c;
/* rgb */ color: rgb(42, 13, 76);
/* oklch */ color: oklch(24.8% 0.108 299.2);
Tailwind
colors: {
  custom: {
    50: '#684f7f',
    500: '#2a0d4c',
    950: '#000000',
  },
}
SCSS
$custom: #2a0d4c;
$custom-light: #684f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0d4c",
  "rgb": {
    "r": 42,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 267.619,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24838,
    "c": 0.10779,
    "h": 299.2
  },
  "luminance": 0.01302
}

Semantic roles & 50–950 ramp

primary
#2A0D4C
secondary
#5E872E
accent
#EE3A9B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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