#2B1057#2B1057

#2B1057 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.118 H 294.1°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1057
RGBrgb(43, 16, 87)
HSLhsl(263, 69%, 20%)
HSVhsv(263, 82%, 34%)
CMYKcmyk(50.6%, 81.6%, 0%, 65.9%)
CIE-LABlab(13.06, 31.01, -37.55)
CIE-LCHlch(13.06, 48.70, 309.55°)
OKLaboklab(26.45% 0.0481 -0.1077)
OKLCHoklch(26.45% 0.118 294.1)
XYZxyz(2.9014, 1.5722, 9.1656)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1057 #3C5710
analogous
#101857 #2B1057 #4E1057
triadic
#2B1057 #572B10 #10572B
tetradic
#2B1057 #571018 #3C5710 #10574E
square
#2B1057 #571018 #3C5710 #10574E
split-complementary
#2B1057 #574E10 #185710
monochromatic
#0D051A #110623 #2B1057 #451A8B #5E23BE

Accessibility & contrast

On white

15.98
#2B1057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1057
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1057#FFFFFF#000000##FFFFFF
##2B10571.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#1E2333
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1057;
/* rgb */ color: rgb(43, 16, 87);
/* oklch */ color: oklch(26.4% 0.118 294.1);
Tailwind
colors: {
  custom: {
    50: '#6a5187',
    500: '#2b1057',
    950: '#000000',
  },
}
SCSS
$custom: #2b1057;
$custom-light: #6a5187;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1057",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 87
  },
  "hsl": {
    "h": 262.817,
    "s": 68.932,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26449,
    "c": 0.11793,
    "h": 294.1
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2B1057
secondary
#6D9032
accent
#EC3CA9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1057

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

Preview Lab → · Contrast checker → · Palette generator →

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