#2B155B#2B155B

#2B155B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.117 H 291.1°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#2B155B
RGBrgb(43, 21, 91)
HSLhsl(259, 63%, 22%)
HSVhsv(259, 77%, 36%)
CMYKcmyk(52.7%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.43, 29.48, -38.00)
CIE-LCHlch(14.43, 48.10, 307.80°)
OKLaboklab(27.54% 0.0421 -0.109)
OKLCHoklch(27.54% 0.117 291.1)
XYZxyz(3.1522, 1.8051, 10.0778)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B155B #455B15
analogous
#15225B #2B155B #4E155B
triadic
#2B155B #5B2B15 #155B2B
tetradic
#2B155B #5B1522 #455B15 #155B4E
square
#2B155B #5B1522 #455B15 #155B4E
split-complementary
#2B155B #5B4E15 #225B15
monochromatic
#0C0619 #140A29 #2B155B #42208D #5A2CBE

Accessibility & contrast

On white

15.43
#2B155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B155B
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B155B#FFFFFF#000000##FFFFFF
##2B155B1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#1B2736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b155b;
/* rgb */ color: rgb(43, 21, 91);
/* oklch */ color: oklch(27.5% 0.117 291.1);
Tailwind
colors: {
  custom: {
    50: '#6a548a',
    500: '#2b155b',
    950: '#000000',
  },
}
SCSS
$custom: #2b155b;
$custom-light: #6a548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b155b",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 258.857,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27537,
    "c": 0.11689,
    "h": 291.1
  },
  "luminance": 0.01805
}

Semantic roles & 50–950 ramp

primary
#2B155B
secondary
#769239
accent
#E642B2
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B155B

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

Preview Lab → · Contrast checker → · Palette generator →

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