#2B1B60#2B1B60

#2B1B60 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.116 H 287.5°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#2B1B60
RGBrgb(43, 27, 96)
HSLhsl(254, 56%, 24%)
HSVhsv(254, 72%, 38%)
CMYKcmyk(55.2%, 71.9%, 0%, 62.4%)
CIE-LABlab(16.21, 27.47, -38.43)
CIE-LCHlch(16.21, 47.24, 305.56°)
OKLaboklab(28.96% 0.0348 -0.1103)
OKLCHoklch(28.96% 0.116 287.5)
XYZxyz(3.4989, 2.1418, 11.2931)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1B60 #50601B
analogous
#1B2E60 #2B1B60 #4E1B60
triadic
#2B1B60 #602B1B #1B602B
tetradic
#2B1B60 #601B2E #50601B #1B604E
square
#2B1B60 #601B2E #50601B #1B604E
split-complementary
#2B1B60 #604E1B #2E601B
monochromatic
#0B0718 #160E30 #2B1B60 #402890 #5636C0

Accessibility & contrast

On white

14.70
#2B1B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1B60
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1B60#FFFFFF#000000##FFFFFF
##2B1B601.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#172C3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1b60;
/* rgb */ color: rgb(43, 27, 96);
/* oklch */ color: oklch(29.0% 0.116 287.5);
Tailwind
colors: {
  custom: {
    50: '#6a588e',
    500: '#2b1b60',
    950: '#000000',
  },
}
SCSS
$custom: #2b1b60;
$custom-light: #6a588e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1b60",
  "rgb": {
    "r": 43,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 253.913,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28959,
    "c": 0.11567,
    "h": 287.5
  },
  "luminance": 0.02142
}

Semantic roles & 50–950 ramp

primary
#2B1B60
secondary
#829641
accent
#DF48BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1B60

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

Preview Lab → · Contrast checker → · Palette generator →

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