#2B0B56#2B0B56

#2B0B56 is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.8% C 0.122 H 295.6°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#2B0B56
RGBrgb(43, 11, 86)
HSLhsl(266, 77%, 19%)
HSVhsv(266, 87%, 34%)
CMYKcmyk(50%, 87.2%, 0%, 66.3%)
CIE-LABlab(12.12, 33.12, -38.41)
CIE-LCHlch(12.12, 50.72, 310.77°)
OKLaboklab(25.76% 0.0528 -0.1101)
OKLCHoklch(25.76% 0.122 295.6)
XYZxyz(2.7952, 1.4247, 8.9300)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0B56 #36560B
analogous
#0B1156 #2B0B56 #510B56
triadic
#2B0B56 #562B0B #0B562B
tetradic
#2B0B56 #560B11 #36560B #0B5651
square
#2B0B56 #560B11 #36560B #0B5651
split-complementary
#2B0B56 #56510B #11560B
monochromatic
#0E031B #100420 #2B0B56 #46128C #6119C3

Accessibility & contrast

On white

16.34
#2B0B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B0B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0B56
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0B56#FFFFFF#000000##FFFFFF
##2B0B561.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#1F2131
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b0b56;
/* rgb */ color: rgb(43, 11, 86);
/* oklch */ color: oklch(25.8% 0.122 295.6);
Tailwind
colors: {
  custom: {
    50: '#6a4f86',
    500: '#2b0b56',
    950: '#000000',
  },
}
SCSS
$custom: #2b0b56;
$custom-light: #6a4f86;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0b56",
  "rgb": {
    "r": 43,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 265.6,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25763,
    "c": 0.12215,
    "h": 295.6
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#2B0B56
secondary
#66912B
accent
#F434A2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0B56

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

Preview Lab → · Contrast checker → · Palette generator →

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