#2B1368#2B1368

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

Color values

HEX#2B1368
RGBrgb(43, 19, 104)
HSLhsl(257, 69%, 24%)
HSVhsv(257, 82%, 41%)
CMYKcmyk(58.7%, 81.7%, 0%, 59.2%)
CIE-LABlab(15.37, 34.63, -45.09)
CIE-LCHlch(15.37, 56.86, 307.53°)
OKLaboklab(28.61% 0.0402 -0.1298)
OKLCHoklch(28.61% 0.136 287.2)
XYZxyz(3.7271, 1.9786, 13.2795)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1368 #506813
analogous
#132668 #2B1368 #561368
triadic
#2B1368 #682B13 #13682B
tetradic
#2B1368 #681326 #506813 #136856
square
#2B1368 #681326 #506813 #136856
split-complementary
#2B1368 #685613 #266813
monochromatic
#0B051A #160A34 #2B1368 #401C9C #5626CF

Accessibility & contrast

On white

15.05
#2B1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1368
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1368#FFFFFF#000000##FFFFFF
##2B13681.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#102B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1368;
/* rgb */ color: rgb(43, 19, 104);
/* oklch */ color: oklch(28.6% 0.136 287.2);
Tailwind
colors: {
  custom: {
    50: '#6d5494',
    500: '#2b1368',
    950: '#000000',
  },
}
SCSS
$custom: #2b1368;
$custom-light: #6d5494;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1368",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 256.941,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28608,
    "c": 0.13587,
    "h": 287.2
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#2B1368
secondary
#829F37
accent
#EC3CBA
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B1368

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

Preview Lab → · Contrast checker → · Palette generator →

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