#2B156E#2B156E

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

Color values

HEX#2B156E
RGBrgb(43, 21, 110)
HSLhsl(255, 68%, 26%)
HSVhsv(255, 81%, 43%)
CMYKcmyk(60.9%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.38, 35.46, -47.36)
CIE-LCHlch(16.38, 59.16, 306.83°)
OKLaboklab(29.51% 0.0368 -0.1364)
OKLCHoklch(29.51% 0.141 285.1)
XYZxyz(4.0780, 2.1755, 14.9538)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B156E #586E15
analogous
#152C6E #2B156E #57156E
triadic
#2B156E #6E2B15 #156E2B
tetradic
#2B156E #6E152C #586E15 #156E57
square
#2B156E #6E152C #586E15 #156E57
split-complementary
#2B156E #6E5715 #2C6E15
monochromatic
#0A051A #170B3B #2B156E #3F1FA1 #5329D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B156E#FFFFFF#000000##FFFFFF
##2B156E1.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)
#002B71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#062F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b156e;
/* rgb */ color: rgb(43, 21, 110);
/* oklch */ color: oklch(29.5% 0.141 285.1);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2b156e',
    950: '#000000',
  },
}
SCSS
$custom: #2b156e;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2b156e",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 254.831,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29506,
    "c": 0.1413,
    "h": 285.1
  },
  "luminance": 0.02176
}

Semantic roles & 50–950 ramp

primary
#2B156E
secondary
#8AA43A
accent
#EB3DC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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