#2B1679#2B1679

#2B1679 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.154 H 282.3°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#2B1679
RGBrgb(43, 22, 121)
HSLhsl(253, 69%, 28%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(64.5%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.77, 38.39, -52.17)
CIE-LCHlch(17.77, 64.77, 306.35°)
OKLaboklab(30.84% 0.0327 -0.1505)
OKLCHoklch(30.84% 0.154 282.3)
XYZxyz(4.7333, 2.4675, 18.3123)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1679 #647916
analogous
#163279 #2B1679 #5C1679
triadic
#2B1679 #792B16 #16792B
tetradic
#2B1679 #791632 #647916 #16795C
square
#2B1679 #791632 #647916 #16795C
split-complementary
#2B1679 #795C16 #327916
monochromatic
#09051A #190D45 #2B1679 #3D1FAD #5430D9

Accessibility & contrast

On white

14.06
#2B1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1679
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1679#FFFFFF#000000##FFFFFF
##2B16791.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1679;
/* rgb */ color: rgb(43, 22, 121);
/* oklch */ color: oklch(30.8% 0.154 282.3);
Tailwind
colors: {
  custom: {
    50: '#7057a1',
    500: '#2b1679',
    950: '#000000',
  },
}
SCSS
$custom: #2b1679;
$custom-light: #7057a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1679",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 252.727,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30837,
    "c": 0.154,
    "h": 282.3
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#2B1679
secondary
#96AE3D
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1679

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

Preview Lab → · Contrast checker → · Palette generator →

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