#2B1668#2B1668

#2B1668 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.133 H 286.6°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2B1668
RGBrgb(43, 22, 104)
HSLhsl(255, 65%, 25%)
HSVhsv(255, 79%, 41%)
CMYKcmyk(58.7%, 78.8%, 0%, 59.2%)
CIE-LABlab(15.94, 33.03, -44.17)
CIE-LCHlch(15.94, 55.15, 306.79°)
OKLaboklab(29% 0.0378 -0.1271)
OKLCHoklch(29% 0.133 286.6)
XYZxyz(3.7811, 2.0867, 13.2975)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1668 #536816
analogous
#162A68 #2B1668 #541668
triadic
#2B1668 #682B16 #16682B
tetradic
#2B1668 #68162A #536816 #166854
square
#2B1668 #68162A #536816 #166854
split-complementary
#2B1668 #685416 #2A6816
monochromatic
#0A0519 #160B35 #2B1668 #40219B #552BCD

Accessibility & contrast

On white

14.82
#2B1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1668
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1668#FFFFFF#000000##FFFFFF
##2B16681.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#0F2D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1668;
/* rgb */ color: rgb(43, 22, 104);
/* oklch */ color: oklch(29.0% 0.133 286.6);
Tailwind
colors: {
  custom: {
    50: '#6c5694',
    500: '#2b1668',
    950: '#000000',
  },
}
SCSS
$custom: #2b1668;
$custom-light: #6c5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1668",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 255.366,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29001,
    "c": 0.13261,
    "h": 286.6
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#2B1668
secondary
#859F3B
accent
#E840BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1668

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

Preview Lab → · Contrast checker → · Palette generator →

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