#2B1772#2B1772

#2B1772 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.144 H 283.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2B1772
RGBrgb(43, 23, 114)
HSLhsl(253, 66%, 27%)
HSVhsv(253, 80%, 45%)
CMYKcmyk(62.3%, 79.8%, 0%, 55.3%)
CIE-LABlab(17.18, 35.66, -48.63)
CIE-LCHlch(17.18, 60.31, 306.25°)
OKLaboklab(30.2% 0.0342 -0.1402)
OKLCHoklch(30.2% 0.144 283.7)
XYZxyz(4.3390, 2.3410, 16.1395)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1772 #5E7217
analogous
#173172 #2B1772 #591772
triadic
#2B1772 #722B17 #17722B
tetradic
#2B1772 #721731 #5E7217 #177259
square
#2B1772 #721731 #5E7217 #177259
split-complementary
#2B1772 #725917 #317217
monochromatic
#0A0519 #180D3F #2B1772 #3E21A5 #532ED5

Accessibility & contrast

On white

14.30
#2B1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1772
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1772#FFFFFF#000000##FFFFFF
##2B17721.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1772;
/* rgb */ color: rgb(43, 23, 114);
/* oklch */ color: oklch(30.2% 0.144 283.7);
Tailwind
colors: {
  custom: {
    50: '#6e579c',
    500: '#2b1772',
    950: '#000000',
  },
}
SCSS
$custom: #2b1772;
$custom-light: #6e579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1772",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 253.187,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30197,
    "c": 0.14427,
    "h": 283.7
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#2B1772
secondary
#90A83D
accent
#E93EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1772

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

Preview Lab → · Contrast checker → · Palette generator →

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