#2A0F3A#2A0F3A

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

Color values

HEX#2A0F3A
RGBrgb(42, 15, 58)
HSLhsl(278, 59%, 14%)
HSVhsv(278, 74%, 23%)
CMYKcmyk(27.6%, 74.1%, 0%, 77.3%)
CIE-LABlab(10.10, 22.93, -22.15)
CIE-LCHlch(10.10, 31.88, 315.99°)
OKLaboklab(23.5% 0.0534 -0.0625)
OKLCHoklch(23.5% 0.082 310.5)
XYZxyz(1.8892, 1.1394, 4.1226)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0F3A #1F3A0F
analogous
#150F3A #2A0F3A #3A0F35
triadic
#2A0F3A #3A2A0F #0F3A2A
tetradic
#2A0F3A #3A150F #1F3A0F #0F353A
square
#2A0F3A #3A150F #1F3A0F #0F353A
split-complementary
#2A0F3A #353A0F #0F3A15
monochromatic
#120618 #120618 #2A0F3A #4D1C6B #70289B

Accessibility & contrast

On white

17.10
#2A0F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2A0F3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0F3A
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0F3A#FFFFFF#000000##FFFFFF
##2A0F3A1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3B
Deuteranopia (green-blind)
#0A1C39
Tritanopia (blue-blind)
#281822
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2a0f3a;
/* rgb */ color: rgb(42, 15, 58);
/* oklch */ color: oklch(23.5% 0.082 310.5);
Tailwind
colors: {
  custom: {
    50: '#654f70',
    500: '#2a0f3a',
    950: '#000000',
  },
}
SCSS
$custom: #2a0f3a;
$custom-light: #654f70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0f3a",
  "rgb": {
    "r": 42,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 277.674,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23497,
    "c": 0.08216,
    "h": 310.5
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#2A0F3A
secondary
#4A7430
accent
#E24680
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A0F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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