#2B1173#2B1173

#2B1173 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.151 H 284.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2B1173
RGBrgb(43, 17, 115)
HSLhsl(256, 74%, 26%)
HSVhsv(256, 85%, 45%)
CMYKcmyk(62.6%, 85.2%, 0%, 54.9%)
CIE-LABlab(16.27, 38.95, -50.79)
CIE-LCHlch(16.27, 64.01, 307.48°)
OKLaboklab(29.59% 0.0378 -0.1464)
OKLCHoklch(29.59% 0.151 284.5)
XYZxyz(4.2903, 2.1520, 16.4056)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1173 #597311
analogous
#112873 #2B1173 #5C1173
triadic
#2B1173 #732B11 #11732B
tetradic
#2B1173 #731128 #597311 #11735C
square
#2B1173 #731128 #597311 #11735C
split-complementary
#2B1173 #735C11 #287311
monochromatic
#0A041B #17093E #2B1173 #3F19A8 #5321DE

Accessibility & contrast

On white

14.68
#2B1173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1173
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1173#FFFFFF#000000##FFFFFF
##2B11731.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1173;
/* rgb */ color: rgb(43, 17, 115);
/* oklch */ color: oklch(29.6% 0.151 284.5);
Tailwind
colors: {
  custom: {
    50: '#6f549c',
    500: '#2b1173',
    950: '#000000',
  },
}
SCSS
$custom: #2b1173;
$custom-light: #6f549c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1173",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 255.918,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29592,
    "c": 0.1512,
    "h": 284.5
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

primary
#2B1173
secondary
#8BAA36
accent
#F137C0
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1173

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

Preview Lab → · Contrast checker → · Palette generator →

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