#2B1466#2B1466

#2B1466 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.132 H 287.6°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2B1466
RGBrgb(43, 20, 102)
HSLhsl(257, 67%, 24%)
HSVhsv(257, 80%, 40%)
CMYKcmyk(57.8%, 80.4%, 0%, 60%)
CIE-LABlab(15.34, 33.49, -43.82)
CIE-LCHlch(15.34, 55.15, 307.39°)
OKLaboklab(28.52% 0.04 -0.1261)
OKLCHoklch(28.52% 0.132 287.6)
XYZxyz(3.6440, 1.9730, 12.7566)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1466 #4F6614
analogous
#142666 #2B1466 #541466
triadic
#2B1466 #662B14 #14662B
tetradic
#2B1466 #661426 #4F6614 #146654
square
#2B1466 #661426 #4F6614 #146654
split-complementary
#2B1466 #665414 #266614
monochromatic
#0B051A #150A33 #2B1466 #411E99 #5628CC

Accessibility & contrast

On white

15.06
#2B1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1466
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1466#FFFFFF#000000##FFFFFF
##2B14661.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#122B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1466;
/* rgb */ color: rgb(43, 20, 102);
/* oklch */ color: oklch(28.5% 0.132 287.6);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2b1466',
    950: '#000000',
  },
}
SCSS
$custom: #2b1466;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1466",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 256.829,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28523,
    "c": 0.13229,
    "h": 287.6
  },
  "luminance": 0.01973
}

Semantic roles & 50–950 ramp

primary
#2B1466
secondary
#819D39
accent
#EA3EBA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1466

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

Preview Lab → · Contrast checker → · Palette generator →

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