#2B0642#2B0642

#2B0642 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.2% C 0.105 H 307.9°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#2B0642
RGBrgb(43, 6, 66)
HSLhsl(277, 83%, 14%)
HSVhsv(277, 91%, 26%)
CMYKcmyk(34.8%, 90.9%, 0%, 74.1%)
CIE-LABlab(9.30, 30.01, -29.16)
CIE-LCHlch(9.30, 41.84, 315.83°)
OKLaboklab(23.18% 0.0646 -0.0829)
OKLCHoklch(23.18% 0.105 307.9)
XYZxyz(2.0445, 1.0372, 5.2457)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0642 #1D4206
analogous
#0D0642 #2B0642 #42063B
triadic
#2B0642 #422B06 #06422B
tetradic
#2B0642 #420D06 #1D4206 #063B42
square
#2B0642 #420D06 #1D4206 #063B42
split-complementary
#2B0642 #3B4206 #06420D
monochromatic
#12031C #12031C #2B0642 #500B7A #7410B2

Accessibility & contrast

On white

17.39
#2B0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0642
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0642#FFFFFF#000000##FFFFFF
##2B06421.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#271624
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0642;
/* rgb */ color: rgb(43, 6, 66);
/* oklch */ color: oklch(23.2% 0.105 307.9);
Tailwind
colors: {
  custom: {
    50: '#684b77',
    500: '#2b0642',
    950: '#000000',
  },
}
SCSS
$custom: #2b0642;
$custom-light: #684b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0642",
  "rgb": {
    "r": 43,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 277,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.23179,
    "c": 0.10514,
    "h": 307.9
  },
  "luminance": 0.01037
}

Semantic roles & 50–950 ramp

primary
#2B0642
secondary
#478222
accent
#FA2E7C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0642

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

Preview Lab → · Contrast checker → · Palette generator →

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