#2B1054#2B1054

#2B1054 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.114 H 295.4°. Best body text is #FFFFFF at 16.09:1 contrast (WCAG AA passes).

Color values

HEX#2B1054
RGBrgb(43, 16, 84)
HSLhsl(264, 68%, 20%)
HSVhsv(264, 81%, 33%)
CMYKcmyk(48.8%, 81%, 0%, 67.1%)
CIE-LABlab(12.76, 30.11, -36.00)
CIE-LCHlch(12.76, 46.93, 309.91°)
OKLaboklab(26.15% 0.049 -0.1031)
OKLCHoklch(26.15% 0.114 295.4)
XYZxyz(2.7814, 1.5242, 8.5334)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1054 #395410
analogous
#101754 #2B1054 #4D1054
triadic
#2B1054 #542B10 #10542B
tetradic
#2B1054 #541017 #395410 #10544D
square
#2B1054 #541017 #395410 #10544D
split-complementary
#2B1054 #544D10 #175410
monochromatic
#0D051A #110621 #2B1054 #451A87 #6024BB

Accessibility & contrast

On white

16.09
#2B1054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1054
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1054#FFFFFF#000000##FFFFFF
##2B10541.0016.091.3016.09
#FFFFFF16.091.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#202231
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1054;
/* rgb */ color: rgb(43, 16, 84);
/* oklch */ color: oklch(26.1% 0.114 295.4);
Tailwind
colors: {
  custom: {
    50: '#695185',
    500: '#2b1054',
    950: '#000000',
  },
}
SCSS
$custom: #2b1054;
$custom-light: #695185;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1054",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 263.824,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26147,
    "c": 0.11417,
    "h": 295.4
  },
  "luminance": 0.01524
}

Semantic roles & 50–950 ramp

primary
#2B1054
secondary
#698E32
accent
#EB3DA6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1054

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

Preview Lab → · Contrast checker → · Palette generator →

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