#2B1978#2B1978

#2B1978 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.150 H 281.9°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2B1978
RGBrgb(43, 25, 120)
HSLhsl(251, 66%, 28%)
HSVhsv(251, 79%, 47%)
CMYKcmyk(64.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.21, 36.50, -50.81)
CIE-LCHlch(18.21, 62.56, 305.69°)
OKLaboklab(31.11% 0.031 -0.1466)
OKLCHoklch(31.11% 0.15 281.9)
XYZxyz(4.7330, 2.5646, 18.0113)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1978 #667819
analogous
#193778 #2B1978 #5A1978
triadic
#2B1978 #782B19 #19782B
tetradic
#2B1978 #781937 #667819 #19785A
square
#2B1978 #781937 #667819 #19785A
split-complementary
#2B1978 #785A19 #377819
monochromatic
#090519 #190E45 #2B1978 #3D24AB #5436D5

Accessibility & contrast

On white

13.88
#2B1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1978
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1978#FFFFFF#000000##FFFFFF
##2B19781.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1978;
/* rgb */ color: rgb(43, 25, 120);
/* oklch */ color: oklch(31.1% 0.150 281.9);
Tailwind
colors: {
  custom: {
    50: '#6f58a0',
    500: '#2b1978',
    950: '#000000',
  },
}
SCSS
$custom: #2b1978;
$custom-light: #6f58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1978",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 251.368,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31109,
    "c": 0.14979,
    "h": 281.9
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

primary
#2B1978
secondary
#98AD40
accent
#E83FC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1978

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

Preview Lab → · Contrast checker → · Palette generator →

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