#2B1362#2B1362

#2B1362 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.128 H 289.1°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#2B1362
RGBrgb(43, 19, 98)
HSLhsl(258, 68%, 23%)
HSVhsv(258, 81%, 38%)
CMYKcmyk(56.1%, 80.6%, 0%, 61.6%)
CIE-LABlab(14.74, 32.78, -42.17)
CIE-LCHlch(14.74, 53.41, 307.86°)
OKLaboklab(27.97% 0.0421 -0.1212)
OKLCHoklch(27.97% 0.128 289.1)
XYZxyz(3.4331, 1.8610, 11.7312)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1362 #4A6213
analogous
#132262 #2B1362 #521362
triadic
#2B1362 #622B13 #13622B
tetradic
#2B1362 #621322 #4A6213 #136252
square
#2B1362 #621322 #4A6213 #136252
split-complementary
#2B1362 #625213 #226213
monochromatic
#0B051A #15092F #2B1362 #411D95 #5827C9

Accessibility & contrast

On white

15.30
#2B1362 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1362
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1362#FFFFFF#000000##FFFFFF
##2B13621.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#16293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1362;
/* rgb */ color: rgb(43, 19, 98);
/* oklch */ color: oklch(28.0% 0.128 289.1);
Tailwind
colors: {
  custom: {
    50: '#6c548f',
    500: '#2b1362',
    950: '#000000',
  },
}
SCSS
$custom: #2b1362;
$custom-light: #6c548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1362",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 98
  },
  "hsl": {
    "h": 258.228,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27972,
    "c": 0.12833,
    "h": 289.1
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#2B1362
secondary
#7C9A37
accent
#EA3DB6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1362

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

Preview Lab → · Contrast checker → · Palette generator →

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