#2B1773#2B1773

#2B1773 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.146 H 283.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2B1773
RGBrgb(43, 23, 115)
HSLhsl(253, 67%, 27%)
HSVhsv(253, 80%, 45%)
CMYKcmyk(62.6%, 80%, 0%, 54.9%)
CIE-LABlab(17.29, 35.98, -49.10)
CIE-LCHlch(17.29, 60.87, 306.23°)
OKLaboklab(30.31% 0.0339 -0.1415)
OKLCHoklch(30.31% 0.146 283.4)
XYZxyz(4.3962, 2.3639, 16.4409)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1773 #5F7317
analogous
#173173 #2B1773 #591773
triadic
#2B1773 #732B17 #17732B
tetradic
#2B1773 #731731 #5F7317 #177359
square
#2B1773 #731731 #5F7317 #177359
split-complementary
#2B1773 #735917 #317317
monochromatic
#0A051A #180D40 #2B1773 #3E21A6 #532FD5

Accessibility & contrast

On white

14.26
#2B1773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1773
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1773#FFFFFF#000000##FFFFFF
##2B17731.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1773;
/* rgb */ color: rgb(43, 23, 115);
/* oklch */ color: oklch(30.3% 0.146 283.4);
Tailwind
colors: {
  custom: {
    50: '#6f579c',
    500: '#2b1773',
    950: '#000000',
  },
}
SCSS
$custom: #2b1773;
$custom-light: #6f579c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1773",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 253.043,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30305,
    "c": 0.14553,
    "h": 283.4
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#2B1773
secondary
#91A93D
accent
#EA3EC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1773

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

Preview Lab → · Contrast checker → · Palette generator →

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