#2B1354#2B1354

#2B1354 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.110 H 294.6°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#2B1354
RGBrgb(43, 19, 84)
HSLhsl(262, 63%, 20%)
HSVhsv(262, 77%, 33%)
CMYKcmyk(48.8%, 77.4%, 0%, 67.1%)
CIE-LABlab(13.35, 28.45, -35.04)
CIE-LCHlch(13.35, 45.14, 309.07°)
OKLaboklab(26.56% 0.0458 -0.1003)
OKLCHoklch(26.56% 0.11 294.6)
XYZxyz(2.8289, 1.6194, 8.5493)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1354 #3C5413
analogous
#131B54 #2B1354 #4B1354
triadic
#2B1354 #542B13 #13542B
tetradic
#2B1354 #54131B #3C5413 #13544B
square
#2B1354 #54131B #3C5413 #13544B
split-complementary
#2B1354 #544B13 #1B5413
monochromatic
#0D0619 #110822 #2B1354 #451E86 #5E2AB8

Accessibility & contrast

On white

15.86
#2B1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1354
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1354#FFFFFF#000000##FFFFFF
##2B13541.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#1F2432
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1354;
/* rgb */ color: rgb(43, 19, 84);
/* oklch */ color: oklch(26.6% 0.110 294.6);
Tailwind
colors: {
  custom: {
    50: '#695385',
    500: '#2b1354',
    950: '#000000',
  },
}
SCSS
$custom: #2b1354;
$custom-light: #695385;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1354",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 262.154,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26561,
    "c": 0.11031,
    "h": 294.6
  },
  "luminance": 0.01619
}

Semantic roles & 50–950 ramp

primary
#2B1354
secondary
#6D8C36
accent
#E642A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1354

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

Preview Lab → · Contrast checker → · Palette generator →

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