#2B1272#2B1272

#2B1272 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.149 H 284.6°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2B1272
RGBrgb(43, 18, 114)
HSLhsl(256, 73%, 26%)
HSVhsv(256, 84%, 45%)
CMYKcmyk(62.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.31, 38.19, -50.07)
CIE-LCHlch(16.31, 62.97, 307.33°)
OKLaboklab(29.59% 0.0375 -0.1443)
OKLCHoklch(29.59% 0.149 284.6)
XYZxyz(4.2489, 2.1608, 16.1095)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1272 #597212
analogous
#122972 #2B1272 #5B1272
triadic
#2B1272 #722B12 #12722B
tetradic
#2B1272 #721229 #597212 #12725B
square
#2B1272 #721229 #597212 #12725B
split-complementary
#2B1272 #725B12 #297212
monochromatic
#0A041A #170A3D #2B1272 #3F1AA7 #5323DC

Accessibility & contrast

On white

14.66
#2B1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1272
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1272#FFFFFF#000000##FFFFFF
##2B12721.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1272;
/* rgb */ color: rgb(43, 18, 114);
/* oklch */ color: oklch(29.6% 0.149 284.6);
Tailwind
colors: {
  custom: {
    50: '#6f549c',
    500: '#2b1272',
    950: '#000000',
  },
}
SCSS
$custom: #2b1272;
$custom-light: #6f549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1272",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 255.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29588,
    "c": 0.14912,
    "h": 284.6
  },
  "luminance": 0.02161
}

Semantic roles & 50–950 ramp

primary
#2B1272
secondary
#8BA937
accent
#EF38C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1272

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

Preview Lab → · Contrast checker → · Palette generator →

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