#2A126A#2A126A

#2A126A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.139 H 286.1°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2A126A
RGBrgb(42, 18, 106)
HSLhsl(256, 71%, 24%)
HSVhsv(256, 83%, 42%)
CMYKcmyk(60.4%, 83%, 0%, 58.4%)
CIE-LABlab(15.30, 35.62, -46.52)
CIE-LCHlch(15.30, 58.59, 307.44°)
OKLaboklab(28.6% 0.0386 -0.134)
OKLCHoklch(28.6% 0.139 286.1)
XYZxyz(3.7719, 1.9652, 13.8134)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A126A #526A12
analogous
#12266A #2A126A #56126A
triadic
#2A126A #6A2A12 #126A2A
tetradic
#2A126A #6A1226 #526A12 #126A56
square
#2A126A #6A1226 #526A12 #126A56
split-complementary
#2A126A #6A5612 #266A12
monochromatic
#0A041A #150936 #2A126A #3F1B9E #5324D3

Accessibility & contrast

On white

15.08
#2A126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A126A
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A126A#FFFFFF#000000##FFFFFF
##2A126A1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#092C3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a126a;
/* rgb */ color: rgb(42, 18, 106);
/* oklch */ color: oklch(28.6% 0.139 286.1);
Tailwind
colors: {
  custom: {
    50: '#6d5496',
    500: '#2a126a',
    950: '#000000',
  },
}
SCSS
$custom: #2a126a;
$custom-light: #6d5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2a126a",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 256.364,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28597,
    "c": 0.13944,
    "h": 286.1
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#2A126A
secondary
#84A236
accent
#EE3ABD
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2A126A

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

Preview Lab → · Contrast checker → · Palette generator →

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