#2B1768#2B1768

#2B1768 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.131 H 286.3°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2B1768
RGBrgb(43, 23, 104)
HSLhsl(255, 64%, 25%)
HSVhsv(255, 78%, 41%)
CMYKcmyk(58.7%, 77.9%, 0%, 59.2%)
CIE-LABlab(16.13, 32.47, -43.84)
CIE-LCHlch(16.13, 54.56, 306.53°)
OKLaboklab(29.14% 0.0369 -0.1262)
OKLCHoklch(29.14% 0.131 286.3)
XYZxyz(3.8006, 2.1256, 13.3040)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1768 #546817
analogous
#172B68 #2B1768 #541768
triadic
#2B1768 #682B17 #17682B
tetradic
#2B1768 #68172B #546817 #176854
square
#2B1768 #68172B #546817 #176854
split-complementary
#2B1768 #685417 #2B6817
monochromatic
#0A0619 #160C36 #2B1768 #40229A #542DCC

Accessibility & contrast

On white

14.73
#2B1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1768
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1768#FFFFFF#000000##FFFFFF
##2B17681.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#0F2D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1768;
/* rgb */ color: rgb(43, 23, 104);
/* oklch */ color: oklch(29.1% 0.131 286.3);
Tailwind
colors: {
  custom: {
    50: '#6c5694',
    500: '#2b1768',
    950: '#000000',
  },
}
SCSS
$custom: #2b1768;
$custom-light: #6c5694;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1768",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 254.815,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.2914,
    "c": 0.13146,
    "h": 286.3
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#2B1768
secondary
#869E3D
accent
#E741BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1768

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

Preview Lab → · Contrast checker → · Palette generator →

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