#2B1266#2B1266

#2B1266 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.134 H 288.0°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2B1266
RGBrgb(43, 18, 102)
HSLhsl(258, 70%, 24%)
HSVhsv(258, 82%, 40%)
CMYKcmyk(57.8%, 82.4%, 0%, 60%)
CIE-LABlab(14.98, 34.53, -44.42)
CIE-LCHlch(14.98, 56.26, 307.86°)
OKLaboklab(28.27% 0.0416 -0.1278)
OKLCHoklch(28.27% 0.134 288)
XYZxyz(3.6101, 1.9053, 12.7453)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1266 #4D6612
analogous
#122366 #2B1266 #551266
triadic
#2B1266 #662B12 #12662B
tetradic
#2B1266 #661223 #4D6612 #126655
square
#2B1266 #661223 #4D6612 #126655
split-complementary
#2B1266 #665512 #236612
monochromatic
#0B051A #150932 #2B1266 #411B9A #5724CE

Accessibility & contrast

On white

15.20
#2B1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1266
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1266#FFFFFF#000000##FFFFFF
##2B12661.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#122A3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1266;
/* rgb */ color: rgb(43, 18, 102);
/* oklch */ color: oklch(28.3% 0.134 288.0);
Tailwind
colors: {
  custom: {
    50: '#6c5393',
    500: '#2b1266',
    950: '#000000',
  },
}
SCSS
$custom: #2b1266;
$custom-light: #6c5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1266",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 257.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.13441,
    "h": 288
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#2B1266
secondary
#7F9E36
accent
#ED3BB8
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1266

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

Preview Lab → · Contrast checker → · Palette generator →

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