#2B1367#2B1367

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

Color values

HEX#2B1367
RGBrgb(43, 19, 103)
HSLhsl(257, 69%, 24%)
HSVhsv(257, 82%, 40%)
CMYKcmyk(58.3%, 81.6%, 0%, 59.6%)
CIE-LABlab(15.27, 34.33, -44.61)
CIE-LCHlch(15.27, 56.29, 307.58°)
OKLaboklab(28.5% 0.0405 -0.1284)
OKLCHoklch(28.5% 0.135 287.5)
XYZxyz(3.6766, 1.9584, 13.0136)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1367 #4F6713
analogous
#132567 #2B1367 #551367
triadic
#2B1367 #672B13 #13672B
tetradic
#2B1367 #671325 #4F6713 #136755
square
#2B1367 #671325 #4F6713 #136755
split-complementary
#2B1367 #675513 #256713
monochromatic
#0B051A #150933 #2B1367 #411D9B #5626CE

Accessibility & contrast

On white

15.09
#2B1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1367
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1367#FFFFFF#000000##FFFFFF
##2B13671.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002869
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#112B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1367;
/* rgb */ color: rgb(43, 19, 103);
/* oklch */ color: oklch(28.5% 0.135 287.5);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2b1367',
    950: '#000000',
  },
}
SCSS
$custom: #2b1367;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1367",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 257.143,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28501,
    "c": 0.13462,
    "h": 287.5
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#2B1367
secondary
#819E37
accent
#EC3CBA
background
#F6F4F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2B1367

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

Preview Lab → · Contrast checker → · Palette generator →

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