#2B1070#2B1070

#2B1070 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.148 H 285.4°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2B1070
RGBrgb(43, 16, 112)
HSLhsl(257, 75%, 25%)
HSVhsv(257, 86%, 44%)
CMYKcmyk(61.6%, 85.7%, 0%, 56.1%)
CIE-LABlab(15.77, 38.50, -49.67)
CIE-LCHlch(15.77, 62.85, 307.78°)
OKLaboklab(29.15% 0.0395 -0.1431)
OKLCHoklch(29.15% 0.148 285.4)
XYZxyz(4.1053, 2.0538, 15.5062)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1070 #557010
analogous
#102570 #2B1070 #5B1070
triadic
#2B1070 #702B10 #10702B
tetradic
#2B1070 #701025 #557010 #10705B
square
#2B1070 #701025 #557010 #10705B
split-complementary
#2B1070 #705B10 #257010
monochromatic
#0A041B #16083A #2B1070 #4018A6 #541FDB

Accessibility & contrast

On white

14.89
#2B1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1070
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1070#FFFFFF#000000##FFFFFF
##2B10701.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#032E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1070;
/* rgb */ color: rgb(43, 16, 112);
/* oklch */ color: oklch(29.1% 0.148 285.4);
Tailwind
colors: {
  custom: {
    50: '#6f539a',
    500: '#2b1070',
    950: '#000000',
  },
}
SCSS
$custom: #2b1070;
$custom-light: #6f539a;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1070",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 256.875,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29146,
    "c": 0.14846,
    "h": 285.4
  },
  "luminance": 0.02054
}

Semantic roles & 50–950 ramp

primary
#2B1070
secondary
#87A834
accent
#F236BD
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1070

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

Preview Lab → · Contrast checker → · Palette generator →

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