#2B1062#2B1062

#2B1062 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.132 H 289.8°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2B1062
RGBrgb(43, 16, 98)
HSLhsl(260, 72%, 22%)
HSVhsv(260, 84%, 38%)
CMYKcmyk(56.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(14.21, 34.31, -43.04)
CIE-LCHlch(14.21, 55.04, 308.56°)
OKLaboklab(27.6% 0.0445 -0.1238)
OKLCHoklch(27.6% 0.132 289.8)
XYZxyz(3.3855, 1.7659, 11.7154)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1062 #476210
analogous
#101E62 #2B1062 #541062
triadic
#2B1062 #622B10 #10622B
tetradic
#2B1062 #62101E #476210 #106254
square
#2B1062 #62101E #476210 #106254
split-complementary
#2B1062 #625410 #1E6210
monochromatic
#0C041A #14072D #2B1062 #421997 #5921CB

Accessibility & contrast

On white

15.52
#2B1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2B1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1062
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1062#FFFFFF#000000##FFFFFF
##2B10621.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#162839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1062;
/* rgb */ color: rgb(43, 16, 98);
/* oklch */ color: oklch(27.6% 0.132 289.8);
Tailwind
colors: {
  custom: {
    50: '#6c5290',
    500: '#2b1062',
    950: '#000000',
  },
}
SCSS
$custom: #2b1062;
$custom-light: #6c5290;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1062",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 259.756,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27599,
    "c": 0.13154,
    "h": 289.8
  },
  "luminance": 0.01766
}

Semantic roles & 50–950 ramp

primary
#2B1062
secondary
#799B33
accent
#EF39B3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1062

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

Preview Lab → · Contrast checker → · Palette generator →

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