#2A0C3F#2A0C3F

#2A0C3F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.093 H 307.5°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#2A0C3F
RGBrgb(42, 12, 63)
HSLhsl(275, 68%, 15%)
HSVhsv(275, 81%, 25%)
CMYKcmyk(33.3%, 81%, 0%, 75.3%)
CIE-LABlab(9.91, 25.98, -26.04)
CIE-LCHlch(9.91, 36.79, 314.93°)
OKLaboklab(23.49% 0.0568 -0.0739)
OKLCHoklch(23.49% 0.093 307.5)
XYZxyz(1.9833, 1.1141, 4.8122)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0C3F #213F0C
analogous
#110C3F #2A0C3F #3F0C3B
triadic
#2A0C3F #3F2A0C #0C3F2A
tetradic
#2A0C3F #3F110C #213F0C #0C3B3F
square
#2A0C3F #3F110C #213F0C #0C3B3F
split-complementary
#2A0C3F #3B3F0C #0C3F11
monochromatic
#11051A #11051A #2A0C3F #4C1672 #6F20A6

Accessibility & contrast

On white

17.17
#2A0C3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A0C3F
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0C3F#FFFFFF#000000##FFFFFF
##2A0C3F1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#011C3E
Tritanopia (blue-blind)
#271824
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0c3f;
/* rgb */ color: rgb(42, 12, 63);
/* oklch */ color: oklch(23.5% 0.093 307.5);
Tailwind
colors: {
  custom: {
    50: '#664e74',
    500: '#2a0c3f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0c3f;
$custom-light: #664e74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0c3f",
  "rgb": {
    "r": 42,
    "g": 12,
    "b": 63
  },
  "hsl": {
    "h": 275.294,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23488,
    "c": 0.09318,
    "h": 307.5
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#2A0C3F
secondary
#4C7B2C
accent
#EB3D85
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0C3F

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

Preview Lab → · Contrast checker → · Palette generator →

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