#2A124E#2A124E

#2A124E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.104 H 296.7°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2A124E
RGBrgb(42, 18, 78)
HSLhsl(264, 63%, 19%)
HSVhsv(264, 77%, 31%)
CMYKcmyk(46.2%, 76.9%, 0%, 69.4%)
CIE-LABlab(12.45, 26.98, -32.41)
CIE-LCHlch(12.45, 42.17, 309.78°)
OKLaboklab(25.72% 0.0466 -0.0926)
OKLCHoklch(25.72% 0.104 296.7)
XYZxyz(2.5459, 1.4749, 7.3568)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A124E #364E12
analogous
#12184E #2A124E #48124E
triadic
#2A124E #4E2A12 #124E2A
tetradic
#2A124E #4E1218 #364E12 #124E48
square
#2A124E #4E1218 #364E12 #124E48
split-complementary
#2A124E #4E4812 #184E12
monochromatic
#0D0619 #0F071C #2A124E #451D80 #6029B1

Accessibility & contrast

On white

16.22
#2A124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A124E
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A124E#FFFFFF#000000##FFFFFF
##2A124E1.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#21212E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a124e;
/* rgb */ color: rgb(42, 18, 78);
/* oklch */ color: oklch(25.7% 0.104 296.7);
Tailwind
colors: {
  custom: {
    50: '#685280',
    500: '#2a124e',
    950: '#000000',
  },
}
SCSS
$custom: #2a124e;
$custom-light: #685280;
$custom-dark: #000000;
JSON
{
  "hex": "#2a124e",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 264,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25717,
    "c": 0.1037,
    "h": 296.7
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#2A124E
secondary
#668735
accent
#E642A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A124E

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

Preview Lab → · Contrast checker → · Palette generator →

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