#2B156D#2B156D

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

Color values

HEX#2B156D
RGBrgb(43, 21, 109)
HSLhsl(255, 68%, 25%)
HSVhsv(255, 81%, 43%)
CMYKcmyk(60.6%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.27, 35.15, -46.88)
CIE-LCHlch(16.27, 58.59, 306.86°)
OKLaboklab(29.4% 0.0371 -0.135)
OKLCHoklch(29.4% 0.14 285.4)
XYZxyz(4.0239, 2.1538, 14.6687)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B156D #576D15
analogous
#152B6D #2B156D #57156D
triadic
#2B156D #6D2B15 #156D2B
tetradic
#2B156D #6D152B #576D15 #156D57
square
#2B156D #6D152B #576D15 #156D57
split-complementary
#2B156D #6D5715 #2B6D15
monochromatic
#0A051A #170B3A #2B156D #3F1FA0 #5329D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B156D#FFFFFF#000000##FFFFFF
##2B156D1.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)
#002B6F
Deuteranopia (green-blind)
#00266B
Tritanopia (blue-blind)
#082E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b156d;
/* rgb */ color: rgb(43, 21, 109);
/* oklch */ color: oklch(29.4% 0.140 285.4);
Tailwind
colors: {
  custom: {
    50: '#6d5598',
    500: '#2b156d',
    950: '#000000',
  },
}
SCSS
$custom: #2b156d;
$custom-light: #6d5598;
$custom-dark: #000000;
JSON
{
  "hex": "#2b156d",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 255,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29398,
    "c": 0.14005,
    "h": 285.4
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#2B156D
secondary
#89A33A
accent
#EB3DBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B156D

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

Preview Lab → · Contrast checker → · Palette generator →

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