#2B1068#2B1068

#2B1068 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.139 H 287.8°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2B1068
RGBrgb(43, 16, 104)
HSLhsl(258, 73%, 24%)
HSVhsv(258, 85%, 41%)
CMYKcmyk(58.7%, 84.6%, 0%, 59.2%)
CIE-LABlab(14.86, 36.11, -45.93)
CIE-LCHlch(14.86, 58.43, 308.17°)
OKLaboklab(28.25% 0.0424 -0.1322)
OKLCHoklch(28.25% 0.139 287.8)
XYZxyz(3.6795, 1.8835, 13.2637)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1068 #4D6810
analogous
#102168 #2B1068 #571068
triadic
#2B1068 #682B10 #10682B
tetradic
#2B1068 #681021 #4D6810 #106857
square
#2B1068 #681021 #4D6810 #106857
split-complementary
#2B1068 #685710 #216810
monochromatic
#0B041B #150833 #2B1068 #41189D #5720D2

Accessibility & contrast

On white

15.25
#2B1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1068
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1068#FFFFFF#000000##FFFFFF
##2B10681.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#102A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1068;
/* rgb */ color: rgb(43, 16, 104);
/* oklch */ color: oklch(28.3% 0.139 287.8);
Tailwind
colors: {
  custom: {
    50: '#6d5294',
    500: '#2b1068',
    950: '#000000',
  },
}
SCSS
$custom: #2b1068;
$custom-light: #6d5294;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1068",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 258.409,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28252,
    "c": 0.13884,
    "h": 287.8
  },
  "luminance": 0.01884
}

Semantic roles & 50–950 ramp

primary
#2B1068
secondary
#7FA034
accent
#F038B7
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#08020D
muted
#7A787E

Preview Lab

Preview with #2B1068

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

Preview Lab → · Contrast checker → · Palette generator →

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