#2A0C4D#2A0C4D

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

Color values

HEX#2A0C4D
RGBrgb(42, 12, 77)
HSLhsl(268, 73%, 17%)
HSVhsv(268, 84%, 30%)
CMYKcmyk(45.5%, 84.4%, 0%, 69.8%)
CIE-LABlab(11.21, 29.91, -33.74)
CIE-LCHlch(11.21, 45.09, 311.56°)
OKLaboklab(24.82% 0.0533 -0.0965)
OKLCHoklch(24.82% 0.11 298.9)
XYZxyz(2.4255, 1.2910, 7.1411)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C4D #2F4D0C
analogous
#0C0F4D #2A0C4D #4A0C4D
triadic
#2A0C4D #4D2A0C #0C4D2A
tetradic
#2A0C4D #4D0C0F #2F4D0C #0C4D4A
square
#2A0C4D #4D0C0F #2F4D0C #0C4D4A
split-complementary
#2A0C4D #4D4A0C #0F4D0C
monochromatic
#0E041A #0E041A #2A0C4D #471482 #641DB7

Accessibility & contrast

On white

16.69
#2A0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C4D
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C4D#FFFFFF#000000##FFFFFF
##2A0C4D1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#001D4C
Tritanopia (blue-blind)
#211D2C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2a0c4d;
/* rgb */ color: rgb(42, 12, 77);
/* oklch */ color: oklch(24.8% 0.110 298.9);
Tailwind
colors: {
  custom: {
    50: '#684f7f',
    500: '#2a0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c4d;
$custom-light: #684f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c4d",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 267.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24815,
    "c": 0.11022,
    "h": 298.9
  },
  "luminance": 0.01291
}

Semantic roles & 50–950 ramp

primary
#2A0C4D
secondary
#5E892C
accent
#F0389B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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