#2B1960#2B1960

#2B1960 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.118 H 288.2°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2B1960
RGBrgb(43, 25, 96)
HSLhsl(255, 59%, 24%)
HSVhsv(255, 74%, 38%)
CMYKcmyk(55.2%, 74%, 0%, 62.4%)
CIE-LABlab(15.76, 28.71, -39.16)
CIE-LCHlch(15.76, 48.56, 306.25°)
OKLaboklab(28.64% 0.0369 -0.1124)
OKLCHoklch(28.64% 0.118 288.2)
XYZxyz(3.4546, 2.0532, 11.2783)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1960 #4E6019
analogous
#192A60 #2B1960 #4E1960
triadic
#2B1960 #602B19 #19602B
tetradic
#2B1960 #60192A #4E6019 #19604E
square
#2B1960 #60192A #4E6019 #19604E
split-complementary
#2B1960 #604E19 #2A6019
monochromatic
#0B0618 #150C2F #2B1960 #412691 #5632C1

Accessibility & contrast

On white

14.89
#2B1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1960
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1960#FFFFFF#000000##FFFFFF
##2B19601.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#172B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1960;
/* rgb */ color: rgb(43, 25, 96);
/* oklch */ color: oklch(28.6% 0.118 288.2);
Tailwind
colors: {
  custom: {
    50: '#6b578e',
    500: '#2b1960',
    950: '#000000',
  },
}
SCSS
$custom: #2b1960;
$custom-light: #6b578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1960",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 255.211,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28636,
    "c": 0.11836,
    "h": 288.2
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#2B1960
secondary
#80963F
accent
#E246BA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1960

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

Preview Lab → · Contrast checker → · Palette generator →

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