#2A124D#2A124D

#2A124D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.102 H 297.2°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2A124D
RGBrgb(42, 18, 77)
HSLhsl(264, 62%, 19%)
HSVhsv(264, 77%, 30%)
CMYKcmyk(45.5%, 76.6%, 0%, 69.8%)
CIE-LABlab(12.36, 26.68, -31.87)
CIE-LCHlch(12.36, 41.57, 309.93°)
OKLaboklab(25.62% 0.0468 -0.0911)
OKLCHoklch(25.62% 0.102 297.2)
XYZxyz(2.5104, 1.4606, 7.1694)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A124D #354D12
analogous
#12174D #2A124D #47124D
triadic
#2A124D #4D2A12 #124D2A
tetradic
#2A124D #4D1217 #354D12 #124D47
square
#2A124D #4D1217 #354D12 #124D47
split-complementary
#2A124D #4D4712 #174D12
monochromatic
#0E0619 #0F061B #2A124D #451E7F #6029B0

Accessibility & contrast

On white

16.25
#2A124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A124D
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A124D#FFFFFF#000000##FFFFFF
##2A124D1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#21202E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a124d;
/* rgb */ color: rgb(42, 18, 77);
/* oklch */ color: oklch(25.6% 0.102 297.2);
Tailwind
colors: {
  custom: {
    50: '#67527f',
    500: '#2a124d',
    950: '#000000',
  },
}
SCSS
$custom: #2a124d;
$custom-light: #67527f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a124d",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 264.407,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25623,
    "c": 0.10238,
    "h": 297.2
  },
  "luminance": 0.01461
}

Semantic roles & 50–950 ramp

primary
#2A124D
secondary
#658635
accent
#E543A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A124D

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

Preview Lab → · Contrast checker → · Palette generator →

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