#2B1672#2B1672

#2B1672 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.145 H 283.9°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#2B1672
RGBrgb(43, 22, 114)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 45%)
CMYKcmyk(62.3%, 80.7%, 0%, 55.3%)
CIE-LABlab(17.00, 36.20, -48.94)
CIE-LCHlch(17.00, 60.87, 306.49°)
OKLaboklab(30.07% 0.0349 -0.141)
OKLCHoklch(30.07% 0.145 283.9)
XYZxyz(4.3195, 2.3020, 16.1330)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1672 #5D7216
analogous
#162F72 #2B1672 #591672
triadic
#2B1672 #722B16 #16722B
tetradic
#2B1672 #72162F #5D7216 #167259
square
#2B1672 #72162F #5D7216 #167259
split-complementary
#2B1672 #725916 #2F7216
monochromatic
#0A051A #180C3F #2B1672 #3E20A5 #532CD6

Accessibility & contrast

On white

14.38
#2B1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1672
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1672#FFFFFF#000000##FFFFFF
##2B16721.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1672;
/* rgb */ color: rgb(43, 22, 114);
/* oklch */ color: oklch(30.1% 0.145 283.9);
Tailwind
colors: {
  custom: {
    50: '#6e569c',
    500: '#2b1672',
    950: '#000000',
  },
}
SCSS
$custom: #2b1672;
$custom-light: #6e569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1672",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 253.696,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30067,
    "c": 0.14529,
    "h": 283.9
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#2B1672
secondary
#8FA83C
accent
#EB3DC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1672

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

Preview Lab → · Contrast checker → · Palette generator →

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