#2A0C3D#2A0C3D

#2A0C3D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.091 H 309.0°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#2A0C3D
RGBrgb(42, 12, 61)
HSLhsl(277, 67%, 14%)
HSVhsv(277, 80%, 24%)
CMYKcmyk(31.1%, 80.3%, 0%, 76.1%)
CIE-LABlab(9.74, 25.44, -24.89)
CIE-LCHlch(9.74, 35.59, 315.62°)
OKLaboklab(23.31% 0.0571 -0.0705)
OKLCHoklch(23.31% 0.091 309)
XYZxyz(1.9285, 1.0921, 4.5232)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C3D #1F3D0C
analogous
#120C3D #2A0C3D #3D0C38
triadic
#2A0C3D #3D2A0C #0C3D2A
tetradic
#2A0C3D #3D120C #1F3D0C #0C383D
square
#2A0C3D #3D120C #1F3D0C #0C383D
split-complementary
#2A0C3D #383D0C #0C3D12
monochromatic
#12051A #12051A #2A0C3D #4D1670 #7020A3

Accessibility & contrast

On white

17.24
#2A0C3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2A0C3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0C3D
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C3D#FFFFFF#000000##FFFFFF
##2A0C3D1.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3E
Deuteranopia (green-blind)
#031B3C
Tritanopia (blue-blind)
#271723
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0c3d;
/* rgb */ color: rgb(42, 12, 61);
/* oklch */ color: oklch(23.3% 0.091 309.0);
Tailwind
colors: {
  custom: {
    50: '#664e73',
    500: '#2a0c3d',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c3d;
$custom-light: #664e73;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c3d",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 61
  },
  "hsl": {
    "h": 276.735,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23311,
    "c": 0.09073,
    "h": 309
  },
  "luminance": 0.01092
}

Semantic roles & 50–950 ramp

primary
#2A0C3D
secondary
#4A792C
accent
#EA3E81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0C3D

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

Preview Lab → · Contrast checker → · Palette generator →

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