#2A0C3E#2A0C3E

#2A0C3E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.092 H 308.3°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#2A0C3E
RGBrgb(42, 12, 62)
HSLhsl(276, 68%, 15%)
HSVhsv(276, 81%, 24%)
CMYKcmyk(32.3%, 80.6%, 0%, 75.7%)
CIE-LABlab(9.82, 25.71, -25.47)
CIE-LCHlch(9.82, 36.19, 315.27°)
OKLaboklab(23.4% 0.057 -0.0722)
OKLCHoklch(23.4% 0.092 308.3)
XYZxyz(1.9556, 1.1030, 4.6664)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C3E #203E0C
analogous
#110C3E #2A0C3E #3E0C39
triadic
#2A0C3E #3E2A0C #0C3E2A
tetradic
#2A0C3E #3E110C #203E0C #0C393E
square
#2A0C3E #3E110C #203E0C #0C393E
split-complementary
#2A0C3E #393E0C #0C3E11
monochromatic
#11051A #11051A #2A0C3E #4D1671 #6F20A5

Accessibility & contrast

On white

17.20
#2A0C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C3E
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C3E#FFFFFF#000000##FFFFFF
##2A0C3E1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3F
Deuteranopia (green-blind)
#021B3D
Tritanopia (blue-blind)
#271724
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0c3e;
/* rgb */ color: rgb(42, 12, 62);
/* oklch */ color: oklch(23.4% 0.092 308.3);
Tailwind
colors: {
  custom: {
    50: '#664e74',
    500: '#2a0c3e',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c3e;
$custom-light: #664e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c3e",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 276,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23399,
    "c": 0.09195,
    "h": 308.3
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#2A0C3E
secondary
#4B7A2C
accent
#EA3D83
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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