#2A124A#2A124A

#2A124A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.098 H 298.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2A124A
RGBrgb(42, 18, 74)
HSLhsl(266, 61%, 18%)
HSVhsv(266, 76%, 29%)
CMYKcmyk(43.2%, 75.7%, 0%, 71%)
CIE-LABlab(12.08, 25.77, -30.24)
CIE-LCHlch(12.08, 39.73, 310.44°)
OKLaboklab(25.35% 0.0474 -0.0862)
OKLCHoklch(25.35% 0.098 298.8)
XYZxyz(2.4069, 1.4192, 6.6244)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A124A #324A12
analogous
#12164A #2A124A #46124A
triadic
#2A124A #4A2A12 #124A2A
tetradic
#2A124A #4A1216 #324A12 #124A46
square
#2A124A #4A1216 #324A12 #124A46
split-complementary
#2A124A #4A4612 #164A12
monochromatic
#0E0619 #0E0619 #2A124A #461E7B #622AAC

Accessibility & contrast

On white

16.36
#2A124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2A124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A124A
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A124A#FFFFFF#000000##FFFFFF
##2A124A1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#221F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a124a;
/* rgb */ color: rgb(42, 18, 74);
/* oklch */ color: oklch(25.3% 0.098 298.8);
Tailwind
colors: {
  custom: {
    50: '#67527d',
    500: '#2a124a',
    950: '#000000',
  },
}
SCSS
$custom: #2a124a;
$custom-light: #67527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a124a",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 265.714,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25345,
    "c": 0.0984,
    "h": 298.8
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#2A124A
secondary
#618335
accent
#E4449F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A124A

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

Preview Lab → · Contrast checker → · Palette generator →

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