#2B1375#2B1375

#2B1375 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.152 H 283.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2B1375
RGBrgb(43, 19, 117)
HSLhsl(255, 72%, 27%)
HSVhsv(255, 84%, 46%)
CMYKcmyk(63.2%, 83.8%, 0%, 54.1%)
CIE-LABlab(16.81, 38.63, -51.18)
CIE-LCHlch(16.81, 64.12, 307.04°)
OKLaboklab(30.04% 0.0359 -0.1476)
OKLCHoklch(30.04% 0.152 283.7)
XYZxyz(4.4390, 2.2634, 17.0291)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1375 #5D7513
analogous
#132C75 #2B1375 #5C1375
triadic
#2B1375 #752B13 #13752B
tetradic
#2B1375 #75132C #5D7513 #13755C
square
#2B1375 #75132C #5D7513 #13755C
split-complementary
#2B1375 #755C13 #2C7513
monochromatic
#0A041A #180A40 #2B1375 #3E1CAA #5327DC

Accessibility & contrast

On white

14.45
#2B1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1375
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1375#FFFFFF#000000##FFFFFF
##2B13751.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1375;
/* rgb */ color: rgb(43, 19, 117);
/* oklch */ color: oklch(30.0% 0.152 283.7);
Tailwind
colors: {
  custom: {
    50: '#6f559e',
    500: '#2b1375',
    950: '#000000',
  },
}
SCSS
$custom: #2b1375;
$custom-light: #6f559e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1375",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 254.694,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30038,
    "c": 0.15186,
    "h": 283.7
  },
  "luminance": 0.02264
}

Semantic roles & 50–950 ramp

primary
#2B1375
secondary
#8FAB38
accent
#EF39C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1375

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

Preview Lab → · Contrast checker → · Palette generator →

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