#2B1056#2B1056

#2B1056 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 294.5°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2B1056
RGBrgb(43, 16, 86)
HSLhsl(263, 69%, 20%)
HSVhsv(263, 81%, 34%)
CMYKcmyk(50%, 81.4%, 0%, 66.3%)
CIE-LABlab(12.96, 30.71, -37.04)
CIE-LCHlch(12.96, 48.11, 309.66°)
OKLaboklab(26.35% 0.0484 -0.1062)
OKLCHoklch(26.35% 0.117 294.5)
XYZxyz(2.8608, 1.5560, 8.9519)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1056 #3B5610
analogous
#101856 #2B1056 #4E1056
triadic
#2B1056 #562B10 #10562B
tetradic
#2B1056 #561018 #3B5610 #10564E
square
#2B1056 #561018 #3B5610 #10564E
split-complementary
#2B1056 #564E10 #185610
monochromatic
#0D051A #110622 #2B1056 #451A8A #5F23BD

Accessibility & contrast

On white

16.02
#2B1056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1056
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1056#FFFFFF#000000##FFFFFF
##2B10561.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1E2332
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1056;
/* rgb */ color: rgb(43, 16, 86);
/* oklch */ color: oklch(26.3% 0.117 294.5);
Tailwind
colors: {
  custom: {
    50: '#6a5186',
    500: '#2b1056',
    950: '#000000',
  },
}
SCSS
$custom: #2b1056;
$custom-light: #6a5186;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1056",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 263.143,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26348,
    "c": 0.11667,
    "h": 294.5
  },
  "luminance": 0.01556
}

Semantic roles & 50–950 ramp

primary
#2B1056
secondary
#6C8F32
accent
#EB3CA8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1056

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

Preview Lab → · Contrast checker → · Palette generator →

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