#2B1364#2B1364

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

Color values

HEX#2B1364
RGBrgb(43, 19, 100)
HSLhsl(258, 68%, 23%)
HSVhsv(258, 81%, 39%)
CMYKcmyk(57%, 81%, 0%, 60.8%)
CIE-LABlab(14.95, 33.40, -43.15)
CIE-LCHlch(14.95, 54.56, 307.74°)
OKLaboklab(28.18% 0.0415 -0.1241)
OKLCHoklch(28.18% 0.131 288.5)
XYZxyz(3.5287, 1.8993, 12.2348)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1364 #4C6413
analogous
#132364 #2B1364 #531364
triadic
#2B1364 #642B13 #13642B
tetradic
#2B1364 #641323 #4C6413 #136453
square
#2B1364 #641323 #4C6413 #136453
split-complementary
#2B1364 #645313 #236413
monochromatic
#0B051A #150931 #2B1364 #411D97 #5727CB

Accessibility & contrast

On white

15.22
#2B1364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1364 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1364
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1364#FFFFFF#000000##FFFFFF
##2B13641.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1364;
/* rgb */ color: rgb(43, 19, 100);
/* oklch */ color: oklch(28.2% 0.131 288.5);
Tailwind
colors: {
  custom: {
    50: '#6c5491',
    500: '#2b1364',
    950: '#000000',
  },
}
SCSS
$custom: #2b1364;
$custom-light: #6c5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1364",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 257.778,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28182,
    "c": 0.13085,
    "h": 288.5
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#2B1364
secondary
#7E9C37
accent
#EB3DB7
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1364

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

Preview Lab → · Contrast checker → · Palette generator →

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