#2A123B#2A123B

#2A123B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.078 H 308.6°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#2A123B
RGBrgb(42, 18, 59)
HSLhsl(275, 53%, 15%)
HSVhsv(275, 69%, 23%)
CMYKcmyk(28.8%, 69.5%, 0%, 76.9%)
CIE-LABlab(10.85, 21.37, -21.66)
CIE-LCHlch(10.85, 30.43, 314.61°)
OKLaboklab(24.07% 0.0488 -0.0611)
OKLCHoklch(24.07% 0.078 308.6)
XYZxyz(1.9604, 1.2407, 4.2730)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A123B #233B12
analogous
#15123B #2A123B #3B1237
triadic
#2A123B #3B2A12 #123B2A
tetradic
#2A123B #3B1512 #233B12 #12373B
square
#2A123B #3B1512 #233B12 #12373B
split-complementary
#2A123B #373B12 #123B15
monochromatic
#110717 #110717 #2A123B #4B206A #6D2F99

Accessibility & contrast

On white

16.82
#2A123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A123B
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A123B#FFFFFF#000000##FFFFFF
##2A123B1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3C
Deuteranopia (green-blind)
#0C1D3A
Tritanopia (blue-blind)
#281A24
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2a123b;
/* rgb */ color: rgb(42, 18, 59);
/* oklch */ color: oklch(24.1% 0.078 308.6);
Tailwind
colors: {
  custom: {
    50: '#655171',
    500: '#2a123b',
    950: '#000000',
  },
}
SCSS
$custom: #2a123b;
$custom-light: #655171;
$custom-dark: #000000;
JSON
{
  "hex": "#2a123b",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 275.122,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24066,
    "c": 0.07818,
    "h": 308.6
  },
  "luminance": 0.01241
}

Semantic roles & 50–950 ramp

primary
#2A123B
secondary
#4F7435
accent
#DD4B87
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2A123B

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

Preview Lab → · Contrast checker → · Palette generator →

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