#2A156D#2A156D

#2A156D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.140 H 284.7°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2A156D
RGBrgb(42, 21, 109)
HSLhsl(254, 68%, 25%)
HSVhsv(254, 81%, 43%)
CMYKcmyk(61.5%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.17, 35.01, -47.06)
CIE-LCHlch(16.17, 58.66, 306.65°)
OKLaboklab(29.3% 0.0355 -0.1356)
OKLCHoklch(29.3% 0.14 284.7)
XYZxyz(3.9825, 2.1324, 14.6668)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A156D #586D15
analogous
#152C6D #2A156D #56156D
triadic
#2A156D #6D2A15 #156D2A
tetradic
#2A156D #6D152C #586D15 #156D56
square
#2A156D #6D152C #586D15 #156D56
split-complementary
#2A156D #6D5615 #2C6D15
monochromatic
#0A051A #160B3A #2A156D #3E1FA0 #5229D4

Accessibility & contrast

On white

14.72
#2A156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A156D
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A156D#FFFFFF#000000##FFFFFF
##2A156D1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#042E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a156d;
/* rgb */ color: rgb(42, 21, 109);
/* oklch */ color: oklch(29.3% 0.140 284.7);
Tailwind
colors: {
  custom: {
    50: '#6d5598',
    500: '#2a156d',
    950: '#000000',
  },
}
SCSS
$custom: #2a156d;
$custom-light: #6d5598;
$custom-dark: #000000;
JSON
{
  "hex": "#2a156d",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 254.318,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29298,
    "c": 0.14016,
    "h": 284.7
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#2A156D
secondary
#8AA33A
accent
#EB3DC1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A156D

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

Preview Lab → · Contrast checker → · Palette generator →

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