#2B156C#2B156C

#2B156C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.139 H 285.6°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#2B156C
RGBrgb(43, 21, 108)
HSLhsl(255, 67%, 25%)
HSVhsv(255, 81%, 42%)
CMYKcmyk(60.2%, 80.6%, 0%, 57.6%)
CIE-LABlab(16.17, 34.84, -46.41)
CIE-LCHlch(16.17, 58.03, 306.89°)
OKLaboklab(29.29% 0.0374 -0.1336)
OKLCHoklch(29.29% 0.139 285.6)
XYZxyz(3.9704, 2.1324, 14.3868)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B156C #566C15
analogous
#152B6C #2B156C #56156C
triadic
#2B156C #6C2B15 #156C2B
tetradic
#2B156C #6C152B #566C15 #156C56
square
#2B156C #6C152B #566C15 #156C56
split-complementary
#2B156C #6C5615 #2B6C15
monochromatic
#0A051A #170B39 #2B156C #3F1F9F #5429D2

Accessibility & contrast

On white

14.72
#2B156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B156C
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B156C#FFFFFF#000000##FFFFFF
##2B156C1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#0A2E40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b156c;
/* rgb */ color: rgb(43, 21, 108);
/* oklch */ color: oklch(29.3% 0.139 285.6);
Tailwind
colors: {
  custom: {
    50: '#6d5597',
    500: '#2b156c',
    950: '#000000',
  },
}
SCSS
$custom: #2b156c;
$custom-light: #6d5597;
$custom-dark: #000000;
JSON
{
  "hex": "#2b156c",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 255.172,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29291,
    "c": 0.13879,
    "h": 285.6
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#2B156C
secondary
#88A33A
accent
#EA3DBF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #2B156C

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

Preview Lab → · Contrast checker → · Palette generator →

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