#2D156D#2D156D

#2D156D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.140 H 286.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2D156D
RGBrgb(45, 21, 109)
HSLhsl(256, 68%, 25%)
HSVhsv(256, 81%, 43%)
CMYKcmyk(58.7%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.49, 35.43, -46.51)
CIE-LCHlch(16.49, 58.47, 307.30°)
OKLaboklab(29.6% 0.0404 -0.1339)
OKLCHoklch(29.6% 0.14 286.8)
XYZxyz(4.1098, 2.1981, 14.6728)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D156D #556D15
analogous
#15296D #2D156D #59156D
triadic
#2D156D #6D2D15 #156D2D
tetradic
#2D156D #6D1529 #556D15 #156D59
square
#2D156D #6D1529 #556D15 #156D59
split-complementary
#2D156D #6D5915 #296D15
monochromatic
#0B051A #180B3A #2D156D #421FA0 #5729D4

Accessibility & contrast

On white

14.59
#2D156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D156D
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D156D#FFFFFF#000000##FFFFFF
##2D156D1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#102E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d156d;
/* rgb */ color: rgb(45, 21, 109);
/* oklch */ color: oklch(29.6% 0.140 286.8);
Tailwind
colors: {
  custom: {
    50: '#6f5698',
    500: '#2d156d',
    950: '#000000',
  },
}
SCSS
$custom: #2d156d;
$custom-light: #6f5698;
$custom-dark: #000000;
JSON
{
  "hex": "#2d156d",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 256.364,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29605,
    "c": 0.13986,
    "h": 286.8
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#2D156D
secondary
#87A33A
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D156D

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

Preview Lab → · Contrast checker → · Palette generator →

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