#2B1066#2B1066

#2B1066 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.136 H 288.4°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1066
RGBrgb(43, 16, 102)
HSLhsl(259, 73%, 23%)
HSVhsv(259, 84%, 40%)
CMYKcmyk(57.8%, 84.3%, 0%, 60%)
CIE-LABlab(14.64, 35.51, -44.98)
CIE-LCHlch(14.64, 57.31, 308.29°)
OKLaboklab(28.03% 0.0431 -0.1294)
OKLCHoklch(28.03% 0.136 288.4)
XYZxyz(3.5791, 1.8433, 12.7350)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1066 #4B6610
analogous
#102066 #2B1066 #561066
triadic
#2B1066 #662B10 #10662B
tetradic
#2B1066 #661020 #4B6610 #106656
square
#2B1066 #661020 #4B6610 #106656
split-complementary
#2B1066 #665610 #206610
monochromatic
#0B041A #150831 #2B1066 #41189B #5821D0

Accessibility & contrast

On white

15.34
#2B1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1066
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1066#FFFFFF#000000##FFFFFF
##2B10661.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#12293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1066;
/* rgb */ color: rgb(43, 16, 102);
/* oklch */ color: oklch(28.0% 0.136 288.4);
Tailwind
colors: {
  custom: {
    50: '#6d5293',
    500: '#2b1066',
    950: '#000000',
  },
}
SCSS
$custom: #2b1066;
$custom-light: #6d5293;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1066",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 258.837,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.13642,
    "h": 288.4
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2B1066
secondary
#7D9E33
accent
#F038B6
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2B1066

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

Preview Lab → · Contrast checker → · Palette generator →

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