#2B1164#2B1164

#2B1164 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.133 H 288.9°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2B1164
RGBrgb(43, 17, 100)
HSLhsl(259, 71%, 23%)
HSVhsv(259, 83%, 39%)
CMYKcmyk(57%, 83%, 0%, 60.8%)
CIE-LABlab(14.59, 34.42, -43.74)
CIE-LCHlch(14.59, 55.66, 308.20°)
OKLaboklab(27.93% 0.0431 -0.1258)
OKLCHoklch(27.93% 0.133 288.9)
XYZxyz(3.4963, 1.8344, 12.2240)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1164 #4A6411
analogous
#112164 #2B1164 #541164
triadic
#2B1164 #642B11 #11642B
tetradic
#2B1164 #641121 #4A6411 #116454
square
#2B1164 #641121 #4A6411 #116454
split-complementary
#2B1164 #645411 #216411
monochromatic
#0B041A #150830 #2B1164 #411A98 #5823CD

Accessibility & contrast

On white

15.36
#2B1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1164
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1164#FFFFFF#000000##FFFFFF
##2B11641.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002666
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#14293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1164;
/* rgb */ color: rgb(43, 17, 100);
/* oklch */ color: oklch(27.9% 0.133 288.9);
Tailwind
colors: {
  custom: {
    50: '#6c5391',
    500: '#2b1164',
    950: '#000000',
  },
}
SCSS
$custom: #2b1164;
$custom-light: #6c5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1164",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 258.795,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27933,
    "c": 0.13297,
    "h": 288.9
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#2B1164
secondary
#7C9C35
accent
#EE3AB5
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2B1164

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

Preview Lab → · Contrast checker → · Palette generator →

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