#2D156C#2D156C

#2D156C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.139 H 287.1°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2D156C
RGBrgb(45, 21, 108)
HSLhsl(257, 67%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(58.3%, 80.6%, 0%, 57.6%)
CIE-LABlab(16.39, 35.12, -46.03)
CIE-LCHlch(16.39, 57.90, 307.34°)
OKLaboklab(29.5% 0.0407 -0.1325)
OKLCHoklch(29.5% 0.139 287.1)
XYZxyz(4.0563, 2.1767, 14.3909)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156C #546C15
analogous
#15286C #2D156C #59156C
triadic
#2D156C #6C2D15 #156C2D
tetradic
#2D156C #6C1528 #546C15 #156C59
square
#2D156C #6C1528 #546C15 #156C59
split-complementary
#2D156C #6C5915 #286C15
monochromatic
#0B051A #180B39 #2D156C #421F9F #5829D2

Accessibility & contrast

On white

14.63
#2D156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D156C
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D156C#FFFFFF#000000##FFFFFF
##2D156C1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#112E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d156c;
/* rgb */ color: rgb(45, 21, 108);
/* oklch */ color: oklch(29.5% 0.139 287.1);
Tailwind
colors: {
  custom: {
    50: '#6e5697',
    500: '#2d156c',
    950: '#000000',
  },
}
SCSS
$custom: #2d156c;
$custom-light: #6e5697;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156c",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 256.552,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29499,
    "c": 0.13861,
    "h": 287.1
  },
  "luminance": 0.02177
}

Semantic roles & 50–950 ramp

primary
#2D156C
secondary
#86A33A
accent
#EA3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D156C

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

Preview Lab → · Contrast checker → · Palette generator →

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