#2A124B#2A124B

#2A124B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.100 H 298.2°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2A124B
RGBrgb(42, 18, 75)
HSLhsl(265, 61%, 18%)
HSVhsv(265, 76%, 29%)
CMYKcmyk(44%, 76%, 0%, 70.6%)
CIE-LABlab(12.17, 26.07, -30.79)
CIE-LCHlch(12.17, 40.34, 310.26°)
OKLaboklab(25.44% 0.0472 -0.0879)
OKLCHoklch(25.44% 0.1 298.2)
XYZxyz(2.4408, 1.4328, 6.8032)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A124B #334B12
analogous
#12164B #2A124B #46124B
triadic
#2A124B #4B2A12 #124B2A
tetradic
#2A124B #4B1216 #334B12 #124B46
square
#2A124B #4B1216 #334B12 #124B46
split-complementary
#2A124B #4B4612 #164B12
monochromatic
#0E0619 #0E061A #2A124B #461E7C #612AAE

Accessibility & contrast

On white

16.32
#2A124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A124B
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A124B#FFFFFF#000000##FFFFFF
##2A124B1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#001F4A
Tritanopia (blue-blind)
#22202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a124b;
/* rgb */ color: rgb(42, 18, 75);
/* oklch */ color: oklch(25.4% 0.100 298.2);
Tailwind
colors: {
  custom: {
    50: '#67527e',
    500: '#2a124b',
    950: '#000000',
  },
}
SCSS
$custom: #2a124b;
$custom-light: #67527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a124b",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 265.263,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25437,
    "c": 0.09973,
    "h": 298.2
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#2A124B
secondary
#638435
accent
#E443A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A124B

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

Preview Lab → · Contrast checker → · Palette generator →

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