#2B1160#2B1160

#2B1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.128 H 290.3°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#2B1160
RGBrgb(43, 17, 96)
HSLhsl(260, 70%, 22%)
HSVhsv(260, 82%, 38%)
CMYKcmyk(55.2%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.17, 33.21, -41.78)
CIE-LCHlch(14.17, 53.37, 308.48°)
OKLaboklab(27.51% 0.0444 -0.1201)
OKLCHoklch(27.51% 0.128 290.3)
XYZxyz(3.3074, 1.7589, 11.2293)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1160 #466011
analogous
#111E60 #2B1160 #531160
triadic
#2B1160 #602B11 #11602B
tetradic
#2B1160 #60111E #466011 #116053
square
#2B1160 #60111E #466011 #116053
split-complementary
#2B1160 #605311 #1E6011
monochromatic
#0C051A #14082C #2B1160 #421A94 #5A23C8

Accessibility & contrast

On white

15.53
#2B1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1160
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1160#FFFFFF#000000##FFFFFF
##2B11601.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#182738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1160;
/* rgb */ color: rgb(43, 17, 96);
/* oklch */ color: oklch(27.5% 0.128 290.3);
Tailwind
colors: {
  custom: {
    50: '#6b528e',
    500: '#2b1160',
    950: '#000000',
  },
}
SCSS
$custom: #2b1160;
$custom-light: #6b528e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1160",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 259.747,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27507,
    "c": 0.12802,
    "h": 290.3
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#2B1160
secondary
#789934
accent
#ED3BB2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1160

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

Preview Lab → · Contrast checker → · Palette generator →

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