#2B1565#2B1565

#2B1565 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.130 H 287.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1565
RGBrgb(43, 21, 101)
HSLhsl(257, 66%, 24%)
HSVhsv(257, 79%, 40%)
CMYKcmyk(57.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.43, 32.63, -43.02)
CIE-LCHlch(15.43, 54.00, 307.18°)
OKLaboklab(28.55% 0.0395 -0.1237)
OKLCHoklch(28.55% 0.13 287.7)
XYZxyz(3.6127, 1.9893, 12.5030)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1565 #4F6515
analogous
#152765 #2B1565 #531565
triadic
#2B1565 #652B15 #15652B
tetradic
#2B1565 #651527 #4F6515 #156553
square
#2B1565 #651527 #4F6515 #156553
split-complementary
#2B1565 #655315 #276515
monochromatic
#0B0519 #150A32 #2B1565 #412098 #562ACA

Accessibility & contrast

On white

15.02
#2B1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1565
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1565#FFFFFF#000000##FFFFFF
##2B15651.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#132B3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1565;
/* rgb */ color: rgb(43, 21, 101);
/* oklch */ color: oklch(28.6% 0.130 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5592',
    500: '#2b1565',
    950: '#000000',
  },
}
SCSS
$custom: #2b1565;
$custom-light: #6c5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1565",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 256.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28552,
    "c": 0.12989,
    "h": 287.7
  },
  "luminance": 0.0199
}

Semantic roles & 50–950 ramp

primary
#2B1565
secondary
#819C3A
accent
#E93FBA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1565

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

Preview Lab → · Contrast checker → · Palette generator →

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