#2B1660#2B1660

#2B1660 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.122 H 289.1°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#2B1660
RGBrgb(43, 22, 96)
HSLhsl(257, 63%, 23%)
HSVhsv(257, 77%, 38%)
CMYKcmyk(55.2%, 77.1%, 0%, 62.4%)
CIE-LABlab(15.13, 30.49, -40.21)
CIE-LCHlch(15.13, 50.46, 307.17°)
OKLaboklab(28.18% 0.0399 -0.1155)
OKLCHoklch(28.18% 0.122 289.1)
XYZxyz(3.3939, 1.9318, 11.2581)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1660 #4B6016
analogous
#162660 #2B1660 #501660
triadic
#2B1660 #602B16 #16602B
tetradic
#2B1660 #601626 #4B6016 #166050
square
#2B1660 #601626 #4B6016 #166050
split-complementary
#2B1660 #605016 #266016
monochromatic
#0B0619 #150B2E #2B1660 #412192 #582DC4

Accessibility & contrast

On white

15.15
#2B1660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1660
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1660#FFFFFF#000000##FFFFFF
##2B16601.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#172A39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1660;
/* rgb */ color: rgb(43, 22, 96);
/* oklch */ color: oklch(28.2% 0.122 289.1);
Tailwind
colors: {
  custom: {
    50: '#6b558e',
    500: '#2b1660',
    950: '#000000',
  },
}
SCSS
$custom: #2b1660;
$custom-light: #6b558e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1660",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 257.027,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28181,
    "c": 0.12221,
    "h": 289.1
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#2B1660
secondary
#7D973B
accent
#E642B7
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1660

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

Preview Lab → · Contrast checker → · Palette generator →

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