#2B1872#2B1872

#2B1872 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.143 H 283.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2B1872
RGBrgb(43, 24, 114)
HSLhsl(253, 65%, 27%)
HSVhsv(253, 79%, 45%)
CMYKcmyk(62.3%, 78.9%, 0%, 55.3%)
CIE-LABlab(17.37, 35.12, -48.32)
CIE-LCHlch(17.37, 59.74, 306.01°)
OKLaboklab(30.33% 0.0334 -0.1393)
OKLCHoklch(30.33% 0.143 283.5)
XYZxyz(4.3592, 2.3815, 16.1463)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1872 #5F7218
analogous
#183272 #2B1872 #581872
triadic
#2B1872 #722B18 #18722B
tetradic
#2B1872 #721832 #5F7218 #187258
square
#2B1872 #721832 #5F7218 #187258
split-complementary
#2B1872 #725818 #327218
monochromatic
#0A0519 #180D3F #2B1872 #3E23A5 #5331D4

Accessibility & contrast

On white

14.22
#2B1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1872
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1872#FFFFFF#000000##FFFFFF
##2B18721.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1872;
/* rgb */ color: rgb(43, 24, 114);
/* oklch */ color: oklch(30.3% 0.143 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e579c',
    500: '#2b1872',
    950: '#000000',
  },
}
SCSS
$custom: #2b1872;
$custom-light: #6e579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1872",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 252.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3033,
    "c": 0.14322,
    "h": 283.5
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#2B1872
secondary
#91A73E
accent
#E840C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1872

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

Preview Lab → · Contrast checker → · Palette generator →

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