#2B156B#2B156B

#2B156B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.138 H 285.9°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#2B156B
RGBrgb(43, 21, 107)
HSLhsl(255, 67%, 25%)
HSVhsv(255, 80%, 42%)
CMYKcmyk(59.8%, 80.4%, 0%, 58%)
CIE-LABlab(16.06, 34.52, -45.93)
CIE-LCHlch(16.06, 57.46, 306.93°)
OKLaboklab(29.18% 0.0377 -0.1322)
OKLCHoklch(29.18% 0.138 285.9)
XYZxyz(3.9175, 2.1112, 14.1082)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B156B #556B15
analogous
#152A6B #2B156B #56156B
triadic
#2B156B #6B2B15 #156B2B
tetradic
#2B156B #6B152A #556B15 #156B56
square
#2B156B #6B152A #556B15 #156B56
split-complementary
#2B156B #6B5615 #2A6B15
monochromatic
#0A051A #160B38 #2B156B #401F9E #5429D1

Accessibility & contrast

On white

14.77
#2B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B156B
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B156B#FFFFFF#000000##FFFFFF
##2B156B1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0B2E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b156b;
/* rgb */ color: rgb(43, 21, 107);
/* oklch */ color: oklch(29.2% 0.138 285.9);
Tailwind
colors: {
  custom: {
    50: '#6d5596',
    500: '#2b156b',
    950: '#000000',
  },
}
SCSS
$custom: #2b156b;
$custom-light: #6d5596;
$custom-dark: #000000;
JSON
{
  "hex": "#2b156b",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 255.349,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29184,
    "c": 0.13753,
    "h": 285.9
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#2B156B
secondary
#87A23A
accent
#EA3EBE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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