#2D156B#2D156B

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

Color values

HEX#2D156B
RGBrgb(45, 21, 107)
HSLhsl(257, 67%, 25%)
HSVhsv(257, 80%, 42%)
CMYKcmyk(57.9%, 80.4%, 0%, 58%)
CIE-LABlab(16.28, 34.82, -45.55)
CIE-LCHlch(16.28, 57.34, 307.39°)
OKLaboklab(29.39% 0.041 -0.1311)
OKLCHoklch(29.39% 0.137 287.4)
XYZxyz(4.0034, 2.1555, 14.1122)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156B #536B15
analogous
#15286B #2D156B #58156B
triadic
#2D156B #6B2D15 #156B2D
tetradic
#2D156B #6B1528 #536B15 #156B58
square
#2D156B #6B1528 #536B15 #156B58
split-complementary
#2D156B #6B5815 #286B15
monochromatic
#0B051A #170B38 #2D156B #431F9E #5829D1

Accessibility & contrast

On white

14.67
#2D156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D156B
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D156B#FFFFFF#000000##FFFFFF
##2D156B1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#122D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d156b;
/* rgb */ color: rgb(45, 21, 107);
/* oklch */ color: oklch(29.4% 0.137 287.4);
Tailwind
colors: {
  custom: {
    50: '#6e5696',
    500: '#2d156b',
    950: '#000000',
  },
}
SCSS
$custom: #2d156b;
$custom-light: #6e5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156b",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 256.744,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29393,
    "c": 0.13736,
    "h": 287.4
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#2D156B
secondary
#85A23A
accent
#EA3EBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D156B

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

Preview Lab → · Contrast checker → · Palette generator →

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