#2B1776#2B1776

#2B1776 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.149 H 282.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2B1776
RGBrgb(43, 23, 118)
HSLhsl(253, 67%, 28%)
HSVhsv(253, 81%, 46%)
CMYKcmyk(63.6%, 80.5%, 0%, 53.7%)
CIE-LABlab(17.62, 36.93, -50.50)
CIE-LCHlch(17.62, 62.56, 306.18°)
OKLaboklab(30.63% 0.033 -0.1456)
OKLCHoklch(30.63% 0.149 282.8)
XYZxyz(4.5717, 2.4341, 17.3649)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1776 #627617
analogous
#173276 #2B1776 #5B1776
triadic
#2B1776 #762B17 #17762B
tetradic
#2B1776 #761732 #627617 #17765B
square
#2B1776 #761732 #627617 #17765B
split-complementary
#2B1776 #765B17 #327617
monochromatic
#09051A #180D43 #2B1776 #3E21A9 #5431D7

Accessibility & contrast

On white

14.12
#2B1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2B1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1776
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1776#FFFFFF#000000##FFFFFF
##2B17761.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1776;
/* rgb */ color: rgb(43, 23, 118);
/* oklch */ color: oklch(30.6% 0.149 282.8);
Tailwind
colors: {
  custom: {
    50: '#6f579f',
    500: '#2b1776',
    950: '#000000',
  },
}
SCSS
$custom: #2b1776;
$custom-light: #6f579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1776",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 252.632,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30631,
    "c": 0.1493,
    "h": 282.8
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#2B1776
secondary
#94AB3E
accent
#EA3EC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1776

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

Preview Lab → · Contrast checker → · Palette generator →

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