#2B1052#2B1052

#2B1052 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.112 H 296.3°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2B1052
RGBrgb(43, 16, 82)
HSLhsl(265, 67%, 19%)
HSVhsv(265, 80%, 32%)
CMYKcmyk(47.6%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.57, 29.51, -34.96)
CIE-LCHlch(12.57, 45.75, 310.17°)
OKLaboklab(25.95% 0.0495 -0.1001)
OKLCHoklch(25.95% 0.112 296.3)
XYZxyz(2.7041, 1.4933, 8.1268)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1052 #375210
analogous
#101652 #2B1052 #4C1052
triadic
#2B1052 #522B10 #10522B
tetradic
#2B1052 #521016 #375210 #10524C
square
#2B1052 #521016 #375210 #10524C
split-complementary
#2B1052 #524C10 #165210
monochromatic
#0D051A #10061F #2B1052 #461A85 #6124B8

Accessibility & contrast

On white

16.17
#2B1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1052
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1052#FFFFFF#000000##FFFFFF
##2B10521.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#212130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1052;
/* rgb */ color: rgb(43, 16, 82);
/* oklch */ color: oklch(25.9% 0.112 296.3);
Tailwind
colors: {
  custom: {
    50: '#695183',
    500: '#2b1052',
    950: '#000000',
  },
}
SCSS
$custom: #2b1052;
$custom-light: #695183;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1052",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 264.545,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25949,
    "c": 0.11164,
    "h": 296.3
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#2B1052
secondary
#678C32
accent
#EA3EA4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1052

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

Preview Lab → · Contrast checker → · Palette generator →

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