#2B2159#2B2159

#2B2159 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.097 H 287.1°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2B2159
RGBrgb(43, 33, 89)
HSLhsl(251, 46%, 24%)
HSVhsv(251, 63%, 35%)
CMYKcmyk(51.7%, 62.9%, 0%, 65.1%)
CIE-LABlab(17.10, 21.16, -32.33)
CIE-LCHlch(17.10, 38.64, 303.21°)
OKLaboklab(29.41% 0.0284 -0.0924)
OKLCHoklch(29.41% 0.097 287.1)
XYZxyz(3.3428, 2.3224, 9.7214)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2159 #4F5921
analogous
#213359 #2B2159 #472159
triadic
#2B2159 #592B21 #21592B
tetradic
#2B2159 #592133 #4F5921 #215947
square
#2B2159 #592133 #4F5921 #215947
split-complementary
#2B2159 #594721 #335921
monochromatic
#0B0816 #15102C #2B2159 #413286 #5642B2

Accessibility & contrast

On white

14.34
#2B2159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B2159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2159
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2159#FFFFFF#000000##FFFFFF
##2B21591.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#1C2E39
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b2159;
/* rgb */ color: rgb(43, 33, 89);
/* oklch */ color: oklch(29.4% 0.097 287.1);
Tailwind
colors: {
  custom: {
    50: '#695c88',
    500: '#2b2159',
    950: '#000000',
  },
}
SCSS
$custom: #2b2159;
$custom-light: #695c88;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2159",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 250.714,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29411,
    "c": 0.09663,
    "h": 287.1
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#2B2159
secondary
#818D49
accent
#D652BE
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040B
muted
#7A797C

Preview Lab

Preview with #2B2159

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

Preview Lab → · Contrast checker → · Palette generator →

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