#2B1764#2B1764

#2B1764 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.126 H 287.5°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1764
RGBrgb(43, 23, 100)
HSLhsl(256, 63%, 24%)
HSVhsv(256, 77%, 39%)
CMYKcmyk(57%, 77%, 0%, 60.8%)
CIE-LABlab(15.73, 31.19, -41.87)
CIE-LCHlch(15.73, 52.21, 306.68°)
OKLaboklab(28.73% 0.038 -0.1204)
OKLCHoklch(28.73% 0.126 287.5)
XYZxyz(3.6022, 2.0463, 12.2593)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1764 #506417
analogous
#172A64 #2B1764 #521764
triadic
#2B1764 #642B17 #17642B
tetradic
#2B1764 #64172A #506417 #176452
square
#2B1764 #64172A #506417 #176452
split-complementary
#2B1764 #645217 #2A6417
monochromatic
#0B0619 #160C32 #2B1764 #402296 #562EC8

Accessibility & contrast

On white

14.90
#2B1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1764 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1764
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1764#FFFFFF#000000##FFFFFF
##2B17641.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#142C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1764;
/* rgb */ color: rgb(43, 23, 100);
/* oklch */ color: oklch(28.7% 0.126 287.5);
Tailwind
colors: {
  custom: {
    50: '#6c5691',
    500: '#2b1764',
    950: '#000000',
  },
}
SCSS
$custom: #2b1764;
$custom-light: #6c5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1764",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 255.584,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2873,
    "c": 0.12624,
    "h": 287.5
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#2B1764
secondary
#829A3C
accent
#E642BB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1764

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

Preview Lab → · Contrast checker → · Palette generator →

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