#2B1358#2B1358

#2B1358 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 292.9°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2B1358
RGBrgb(43, 19, 88)
HSLhsl(261, 64%, 21%)
HSVhsv(261, 78%, 35%)
CMYKcmyk(51.1%, 78.4%, 0%, 65.5%)
CIE-LABlab(13.73, 29.69, -37.13)
CIE-LCHlch(13.73, 47.54, 308.65°)
OKLaboklab(26.95% 0.0449 -0.1064)
OKLCHoklch(26.95% 0.116 292.9)
XYZxyz(2.9901, 1.6838, 9.3981)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1358 #405813
analogous
#131D58 #2B1358 #4D1358
triadic
#2B1358 #582B13 #13582B
tetradic
#2B1358 #58131D #405813 #13584D
square
#2B1358 #58131D #405813 #13584D
split-complementary
#2B1358 #584D13 #1D5813
monochromatic
#0C0519 #120826 #2B1358 #441E8A #5C29BD

Accessibility & contrast

On white

15.71
#2B1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1358
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1358#FFFFFF#000000##FFFFFF
##2B13581.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#1D2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1358;
/* rgb */ color: rgb(43, 19, 88);
/* oklch */ color: oklch(27.0% 0.116 292.9);
Tailwind
colors: {
  custom: {
    50: '#6a5388',
    500: '#2b1358',
    950: '#000000',
  },
}
SCSS
$custom: #2b1358;
$custom-light: #6a5388;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1358",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 260.87,
    "s": 64.486,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26953,
    "c": 0.11552,
    "h": 292.9
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2B1358
secondary
#719037
accent
#E740AD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1358

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

Preview Lab → · Contrast checker → · Palette generator →

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