#2D156A#2D156A

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

Color values

HEX#2D156A
RGBrgb(45, 21, 106)
HSLhsl(257, 67%, 25%)
HSVhsv(257, 80%, 42%)
CMYKcmyk(57.5%, 80.2%, 0%, 58.4%)
CIE-LABlab(16.18, 34.51, -45.07)
CIE-LCHlch(16.18, 56.76, 307.44°)
OKLaboklab(29.29% 0.0413 -0.1297)
OKLCHoklch(29.29% 0.136 287.7)
XYZxyz(3.9511, 2.1346, 13.8367)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156A #526A15
analogous
#15286A #2D156A #57156A
triadic
#2D156A #6A2D15 #156A2D
tetradic
#2D156A #6A1528 #526A15 #156A57
square
#2D156A #6A1528 #526A15 #156A57
split-complementary
#2D156A #6A5715 #286A15
monochromatic
#0B051A #170B37 #2D156A #431F9D #5829D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D156A#FFFFFF#000000##FFFFFF
##2D156A1.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)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#132D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d156a;
/* rgb */ color: rgb(45, 21, 106);
/* oklch */ color: oklch(29.3% 0.136 287.7);
Tailwind
colors: {
  custom: {
    50: '#6e5596',
    500: '#2d156a',
    950: '#000000',
  },
}
SCSS
$custom: #2d156a;
$custom-light: #6e5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156a",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 256.941,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29288,
    "c": 0.13611,
    "h": 287.7
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#2D156A
secondary
#84A13A
accent
#EA3EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D156A

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

Preview Lab → · Contrast checker → · Palette generator →

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