#2B1666#2B1666

#2B1666 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.130 H 287.2°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1666
RGBrgb(43, 22, 102)
HSLhsl(256, 65%, 24%)
HSVhsv(256, 78%, 40%)
CMYKcmyk(57.8%, 78.4%, 0%, 60%)
CIE-LABlab(15.73, 32.40, -43.19)
CIE-LCHlch(15.73, 53.99, 306.87°)
OKLaboklab(28.79% 0.0384 -0.1242)
OKLCHoklch(28.79% 0.13 287.2)
XYZxyz(3.6807, 2.0465, 12.7689)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1666 #516616
analogous
#162966 #2B1666 #531666
triadic
#2B1666 #662B16 #16662B
tetradic
#2B1666 #661629 #516616 #166653
square
#2B1666 #661629 #516616 #166653
split-complementary
#2B1666 #665316 #296616
monochromatic
#0B0519 #160B34 #2B1666 #402198 #552CCB

Accessibility & contrast

On white

14.90
#2B1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1666
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1666#FFFFFF#000000##FFFFFF
##2B16661.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#122C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1666;
/* rgb */ color: rgb(43, 22, 102);
/* oklch */ color: oklch(28.8% 0.130 287.2);
Tailwind
colors: {
  custom: {
    50: '#6c5692',
    500: '#2b1666',
    950: '#000000',
  },
}
SCSS
$custom: #2b1666;
$custom-light: #6c5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1666",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 255.75,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28793,
    "c": 0.13003,
    "h": 287.2
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#2B1666
secondary
#839D3B
accent
#E840BC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1666

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

Preview Lab → · Contrast checker → · Palette generator →

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