#2B1154#2B1154

#2B1154 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.113 H 295.1°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1154
RGBrgb(43, 17, 84)
HSLhsl(263, 66%, 20%)
HSVhsv(263, 80%, 33%)
CMYKcmyk(48.8%, 79.8%, 0%, 67.1%)
CIE-LABlab(12.95, 29.57, -35.69)
CIE-LCHlch(12.95, 46.35, 309.64°)
OKLaboklab(26.28% 0.048 -0.1022)
OKLCHoklch(26.28% 0.113 295.1)
XYZxyz(2.7965, 1.5545, 8.5385)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1154 #3A5411
analogous
#111854 #2B1154 #4D1154
triadic
#2B1154 #542B11 #11542B
tetradic
#2B1154 #541118 #3A5411 #11544D
square
#2B1154 #541118 #3A5411 #11544D
split-complementary
#2B1154 #544D11 #185411
monochromatic
#0D0519 #110721 #2B1154 #451B87 #5F26BA

Accessibility & contrast

On white

16.02
#2B1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1154
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1154#FFFFFF#000000##FFFFFF
##2B11541.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#1F2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1154;
/* rgb */ color: rgb(43, 17, 84);
/* oklch */ color: oklch(26.3% 0.113 295.1);
Tailwind
colors: {
  custom: {
    50: '#695285',
    500: '#2b1154',
    950: '#000000',
  },
}
SCSS
$custom: #2b1154;
$custom-light: #695285;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1154",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 263.284,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2628,
    "c": 0.11292,
    "h": 295.1
  },
  "luminance": 0.01555
}

Semantic roles & 50–950 ramp

primary
#2B1154
secondary
#6A8D34
accent
#E93FA7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1154

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

Preview Lab → · Contrast checker → · Palette generator →

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