#2A156E#2A156E

#2A156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.141 H 284.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2A156E
RGBrgb(42, 21, 110)
HSLhsl(254, 68%, 26%)
HSVhsv(254, 81%, 43%)
CMYKcmyk(61.8%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.28, 35.33, -47.53)
CIE-LCHlch(16.28, 59.22, 306.62°)
OKLaboklab(29.41% 0.0352 -0.137)
OKLCHoklch(29.41% 0.141 284.4)
XYZxyz(4.0366, 2.1541, 14.9519)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A156E #596E15
analogous
#152C6E #2A156E #56156E
triadic
#2A156E #6E2A15 #156E2A
tetradic
#2A156E #6E152C #596E15 #156E56
square
#2A156E #6E152C #596E15 #156E56
split-complementary
#2A156E #6E5615 #2C6E15
monochromatic
#0A051A #160B3B #2A156E #3E1FA1 #5129D5

Accessibility & contrast

On white

14.68
#2A156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A156E
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A156E#FFFFFF#000000##FFFFFF
##2A156E1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00256C
Tritanopia (blue-blind)
#022F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a156e;
/* rgb */ color: rgb(42, 21, 110);
/* oklch */ color: oklch(29.4% 0.141 284.4);
Tailwind
colors: {
  custom: {
    50: '#6d5599',
    500: '#2a156e',
    950: '#000000',
  },
}
SCSS
$custom: #2a156e;
$custom-light: #6d5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2a156e",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 254.157,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29406,
    "c": 0.14143,
    "h": 284.4
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2A156E
secondary
#8BA43A
accent
#EB3DC2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2A156E

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

Preview Lab → · Contrast checker → · Palette generator →

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