#2B1464#2B1464

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

Color values

HEX#2B1464
RGBrgb(43, 20, 100)
HSLhsl(257, 67%, 24%)
HSVhsv(257, 80%, 39%)
CMYKcmyk(57%, 80%, 0%, 60.8%)
CIE-LABlab(15.14, 32.87, -42.84)
CIE-LCHlch(15.14, 54.00, 307.49°)
OKLaboklab(28.31% 0.0406 -0.1232)
OKLCHoklch(28.31% 0.13 288.2)
XYZxyz(3.5460, 1.9338, 12.2405)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1464 #4D6414
analogous
#142564 #2B1464 #531464
triadic
#2B1464 #642B14 #14642B
tetradic
#2B1464 #641425 #4D6414 #146453
square
#2B1464 #641425 #4D6414 #146453
split-complementary
#2B1464 #645314 #256414
monochromatic
#0B051A #150A31 #2B1464 #411E97 #5728CA

Accessibility & contrast

On white

15.14
#2B1464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1464
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1464#FFFFFF#000000##FFFFFF
##2B14641.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#142A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1464;
/* rgb */ color: rgb(43, 20, 100);
/* oklch */ color: oklch(28.3% 0.130 288.2);
Tailwind
colors: {
  custom: {
    50: '#6c5491',
    500: '#2b1464',
    950: '#000000',
  },
}
SCSS
$custom: #2b1464;
$custom-light: #6c5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1464",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 257.25,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28313,
    "c": 0.12975,
    "h": 288.2
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#2B1464
secondary
#7F9B38
accent
#EA3EB8
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1464

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

Preview Lab → · Contrast checker → · Palette generator →

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