#2A156A#2A156A

#2A156A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.136 H 285.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#2A156A
RGBrgb(42, 21, 106)
HSLhsl(255, 67%, 25%)
HSVhsv(255, 80%, 42%)
CMYKcmyk(60.4%, 80.2%, 0%, 58.4%)
CIE-LABlab(15.85, 34.06, -45.63)
CIE-LCHlch(15.85, 56.94, 306.74°)
OKLaboklab(28.98% 0.0364 -0.1314)
OKLCHoklch(28.98% 0.136 285.5)
XYZxyz(3.8237, 2.0690, 13.8307)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A156A #556A15
analogous
#152A6A #2A156A #55156A
triadic
#2A156A #6A2A15 #156A2A
tetradic
#2A156A #6A152A #556A15 #156A55
square
#2A156A #6A152A #556A15 #156A55
split-complementary
#2A156A #6A5515 #2A6A15
monochromatic
#0A051A #160B37 #2A156A #3E1F9D #5229D0

Accessibility & contrast

On white

14.85
#2A156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A156A
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A156A#FFFFFF#000000##FFFFFF
##2A156A1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#092D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a156a;
/* rgb */ color: rgb(42, 21, 106);
/* oklch */ color: oklch(29.0% 0.136 285.5);
Tailwind
colors: {
  custom: {
    50: '#6c5596',
    500: '#2a156a',
    950: '#000000',
  },
}
SCSS
$custom: #2a156a;
$custom-light: #6c5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2a156a",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 254.824,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28975,
    "c": 0.13637,
    "h": 285.5
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#2A156A
secondary
#87A13A
accent
#EA3EBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2A156A

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

Preview Lab → · Contrast checker → · Palette generator →

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