#2A123A#2A123A

#2A123A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.077 H 309.5°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#2A123A
RGBrgb(42, 18, 58)
HSLhsl(276, 53%, 15%)
HSVhsv(276, 69%, 23%)
CMYKcmyk(27.6%, 69%, 0%, 77.3%)
CIE-LABlab(10.78, 21.09, -21.07)
CIE-LCHlch(10.78, 29.81, 315.03°)
OKLaboklab(23.99% 0.0488 -0.0593)
OKLCHoklch(23.99% 0.077 309.5)
XYZxyz(1.9347, 1.2304, 4.1377)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A123A #223A12
analogous
#16123A #2A123A #3A1236
triadic
#2A123A #3A2A12 #123A2A
tetradic
#2A123A #3A1612 #223A12 #12363A
square
#2A123A #3A1612 #223A12 #12363A
split-complementary
#2A123A #363A12 #123A16
monochromatic
#110717 #110717 #2A123A #4C2069 #6E2F97

Accessibility & contrast

On white

16.85
#2A123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2A123A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A123A
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A123A#FFFFFF#000000##FFFFFF
##2A123A1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#0D1D39
Tritanopia (blue-blind)
#281A23
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a123a;
/* rgb */ color: rgb(42, 18, 58);
/* oklch */ color: oklch(24.0% 0.077 309.5);
Tailwind
colors: {
  custom: {
    50: '#655170',
    500: '#2a123a',
    950: '#000000',
  },
}
SCSS
$custom: #2a123a;
$custom-light: #655170;
$custom-dark: #000000;
JSON
{
  "hex": "#2a123a",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 276,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.23988,
    "c": 0.07684,
    "h": 309.5
  },
  "luminance": 0.0123
}

Semantic roles & 50–950 ramp

primary
#2A123A
secondary
#4E7335
accent
#DC4C85
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A123A

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

Preview Lab → · Contrast checker → · Palette generator →

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