#2B1157#2B1157

#2B1157 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.117 H 293.8°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1157
RGBrgb(43, 17, 87)
HSLhsl(262, 67%, 20%)
HSVhsv(262, 80%, 34%)
CMYKcmyk(50.6%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.25, 30.48, -37.25)
CIE-LCHlch(13.25, 48.13, 309.29°)
OKLaboklab(26.58% 0.0471 -0.1068)
OKLCHoklch(26.58% 0.117 293.8)
XYZxyz(2.9165, 1.6025, 9.1706)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1157 #3D5711
analogous
#111A57 #2B1157 #4E1157
triadic
#2B1157 #572B11 #11572B
tetradic
#2B1157 #57111A #3D5711 #11574E
square
#2B1157 #57111A #3D5711 #11574E
split-complementary
#2B1157 #574E11 #1A5711
monochromatic
#0D051A #120724 #2B1157 #441B8A #5E25BD

Accessibility & contrast

On white

15.90
#2B1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1157
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1157#FFFFFF#000000##FFFFFF
##2B11571.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#1E2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1157;
/* rgb */ color: rgb(43, 17, 87);
/* oklch */ color: oklch(26.6% 0.117 293.8);
Tailwind
colors: {
  custom: {
    50: '#6a5287',
    500: '#2b1157',
    950: '#000000',
  },
}
SCSS
$custom: #2b1157;
$custom-light: #6a5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1157",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 262.286,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26579,
    "c": 0.11673,
    "h": 293.8
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#2B1157
secondary
#6E9034
accent
#EA3EAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1157

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

Preview Lab → · Contrast checker → · Palette generator →

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