#2B1472#2B1472

#2B1472 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.147 H 284.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2B1472
RGBrgb(43, 20, 114)
HSLhsl(255, 70%, 26%)
HSVhsv(255, 82%, 45%)
CMYKcmyk(62.3%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.64, 37.22, -49.52)
CIE-LCHlch(16.64, 61.95, 306.93°)
OKLaboklab(29.82% 0.0362 -0.1427)
OKLCHoklch(29.82% 0.147 284.2)
XYZxyz(4.2827, 2.2285, 16.1208)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1472 #5B7214
analogous
#142C72 #2B1472 #5A1472
triadic
#2B1472 #722B14 #14722B
tetradic
#2B1472 #72142C #5B7214 #14725A
square
#2B1472 #72142C #5B7214 #14725A
split-complementary
#2B1472 #725A14 #2C7214
monochromatic
#0A051A #170B3E #2B1472 #3F1DA6 #5327D9

Accessibility & contrast

On white

14.52
#2B1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1472
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1472#FFFFFF#000000##FFFFFF
##2B14721.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1472;
/* rgb */ color: rgb(43, 20, 114);
/* oklch */ color: oklch(29.8% 0.147 284.2);
Tailwind
colors: {
  custom: {
    50: '#6f559c',
    500: '#2b1472',
    950: '#000000',
  },
}
SCSS
$custom: #2b1472;
$custom-light: #6f559c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1472",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 254.681,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.2982,
    "c": 0.14727,
    "h": 284.2
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#2B1472
secondary
#8DA839
accent
#ED3BC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1472

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

Preview Lab → · Contrast checker → · Palette generator →

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