#2B1051#2B1051

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

Color values

HEX#2B1051
RGBrgb(43, 16, 81)
HSLhsl(265, 67%, 19%)
HSVhsv(265, 80%, 32%)
CMYKcmyk(46.9%, 80.2%, 0%, 68.2%)
CIE-LABlab(12.47, 29.22, -34.43)
CIE-LCHlch(12.47, 45.16, 310.32°)
OKLaboklab(25.85% 0.0498 -0.0985)
OKLCHoklch(25.85% 0.11 296.8)
XYZxyz(2.6664, 1.4782, 7.9278)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1051 #365110
analogous
#101651 #2B1051 #4C1051
triadic
#2B1051 #512B10 #10512B
tetradic
#2B1051 #511016 #365110 #10514C
square
#2B1051 #511016 #365110 #10514C
split-complementary
#2B1051 #514C10 #165110
monochromatic
#0E051A #10061E #2B1051 #461A84 #6124B7

Accessibility & contrast

On white

16.21
#2B1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1051
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1051#FFFFFF#000000##FFFFFF
##2B10511.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#21212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b1051;
/* rgb */ color: rgb(43, 16, 81);
/* oklch */ color: oklch(25.9% 0.110 296.8);
Tailwind
colors: {
  custom: {
    50: '#695182',
    500: '#2b1051',
    950: '#000000',
  },
}
SCSS
$custom: #2b1051;
$custom-light: #695182;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1051",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 264.923,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25851,
    "c": 0.11039,
    "h": 296.8
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#2B1051
secondary
#668B32
accent
#EA3EA2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B1051

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

Preview Lab → · Contrast checker → · Palette generator →

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