#2A0A3F#2A0A3F

#2A0A3F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.096 H 308.0°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#2A0A3F
RGBrgb(42, 10, 63)
HSLhsl(276, 73%, 14%)
HSVhsv(276, 84%, 25%)
CMYKcmyk(33.3%, 84.1%, 0%, 75.3%)
CIE-LABlab(9.55, 27.00, -26.63)
CIE-LCHlch(9.55, 37.92, 315.40°)
OKLaboklab(23.23% 0.0592 -0.0756)
OKLCHoklch(23.23% 0.096 308)
XYZxyz(1.9604, 1.0682, 4.8046)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0A3F #1F3F0A
analogous
#0F0A3F #2A0A3F #3F0A3A
triadic
#2A0A3F #3F2A0A #0A3F2A
tetradic
#2A0A3F #3F0F0A #1F3F0A #0A3A3F
square
#2A0A3F #3F0F0A #1F3F0A #0A3A3F
split-complementary
#2A0A3F #3A3F0A #0A3F0F
monochromatic
#12041A #12041A #2A0A3F #4D1274 #701BA9

Accessibility & contrast

On white

17.30
#2A0A3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2A0A3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0A3F
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0A3F#FFFFFF#000000##FFFFFF
##2A0A3F1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001940
Deuteranopia (green-blind)
#001B3E
Tritanopia (blue-blind)
#271724
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2a0a3f;
/* rgb */ color: rgb(42, 10, 63);
/* oklch */ color: oklch(23.2% 0.096 308.0);
Tailwind
colors: {
  custom: {
    50: '#664d74',
    500: '#2a0a3f',
    950: '#000000',
  },
}
SCSS
$custom: #2a0a3f;
$custom-light: #664d74;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0a3f",
  "rgb": {
    "r": 42,
    "g": 10,
    "b": 63
  },
  "hsl": {
    "h": 276.226,
    "s": 72.603,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23232,
    "c": 0.09597,
    "h": 308
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#2A0A3F
secondary
#4A7C29
accent
#EF3881
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2A0A3F

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

Preview Lab → · Contrast checker → · Palette generator →

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