#2B1673#2B1673

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

Color values

HEX#2B1673
RGBrgb(43, 22, 115)
HSLhsl(254, 68%, 27%)
HSVhsv(254, 81%, 45%)
CMYKcmyk(62.6%, 80.9%, 0%, 54.9%)
CIE-LABlab(17.11, 36.51, -49.40)
CIE-LCHlch(17.11, 61.43, 306.46°)
OKLaboklab(30.18% 0.0346 -0.1424)
OKLCHoklch(30.18% 0.147 283.6)
XYZxyz(4.3767, 2.3249, 16.4345)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1673 #5E7316
analogous
#163073 #2B1673 #5A1673
triadic
#2B1673 #732B16 #16732B
tetradic
#2B1673 #731630 #5E7316 #16735A
square
#2B1673 #731630 #5E7316 #16735A
split-complementary
#2B1673 #735A16 #307316
monochromatic
#0A051A #180C40 #2B1673 #3E20A6 #532DD7

Accessibility & contrast

On white

14.33
#2B1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1673
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1673#FFFFFF#000000##FFFFFF
##2B16731.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1673;
/* rgb */ color: rgb(43, 22, 115);
/* oklch */ color: oklch(30.2% 0.147 283.6);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2b1673',
    950: '#000000',
  },
}
SCSS
$custom: #2b1673;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1673",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 253.548,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30176,
    "c": 0.14655,
    "h": 283.6
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#2B1673
secondary
#90A93C
accent
#EB3DC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1673

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

Preview Lab → · Contrast checker → · Palette generator →

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