#2B1562#2B1562

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

Color values

HEX#2B1562
RGBrgb(43, 21, 98)
HSLhsl(257, 65%, 23%)
HSVhsv(257, 79%, 38%)
CMYKcmyk(56.1%, 78.6%, 0%, 61.6%)
CIE-LABlab(15.12, 31.69, -41.54)
CIE-LCHlch(15.12, 52.24, 307.34°)
OKLaboklab(28.24% 0.0403 -0.1194)
OKLCHoklch(28.24% 0.126 288.7)
XYZxyz(3.4684, 1.9316, 11.7430)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1562 #4C6215
analogous
#152562 #2B1562 #511562
triadic
#2B1562 #622B15 #15622B
tetradic
#2B1562 #621525 #4C6215 #156251
square
#2B1562 #621525 #4C6215 #156251
split-complementary
#2B1562 #625115 #256215
monochromatic
#0B0519 #150A30 #2B1562 #412094 #572BC7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1562#FFFFFF#000000##FFFFFF
##2B15621.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)
#002864
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#162A3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1562;
/* rgb */ color: rgb(43, 21, 98);
/* oklch */ color: oklch(28.2% 0.126 288.7);
Tailwind
colors: {
  custom: {
    50: '#6b558f',
    500: '#2b1562',
    950: '#000000',
  },
}
SCSS
$custom: #2b1562;
$custom-light: #6b558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1562",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 257.143,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28242,
    "c": 0.12602,
    "h": 288.7
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#2B1562
secondary
#7E993A
accent
#E840B8
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1562

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

Preview Lab → · Contrast checker → · Palette generator →

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