#2B1262#2B1262

#2B1262 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.129 H 289.4°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#2B1262
RGBrgb(43, 18, 98)
HSLhsl(259, 69%, 23%)
HSVhsv(259, 82%, 38%)
CMYKcmyk(56.1%, 81.6%, 0%, 61.6%)
CIE-LABlab(14.56, 33.30, -42.47)
CIE-LCHlch(14.56, 53.97, 308.10°)
OKLaboklab(27.84% 0.0429 -0.1221)
OKLCHoklch(27.84% 0.129 289.4)
XYZxyz(3.4165, 1.8279, 11.7257)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1262 #496212
analogous
#122162 #2B1262 #531262
triadic
#2B1262 #622B12 #12622B
tetradic
#2B1262 #621221 #496212 #126253
square
#2B1262 #621221 #496212 #126253
split-complementary
#2B1262 #625312 #216212
monochromatic
#0B051A #14092E #2B1262 #421B96 #5825C9

Accessibility & contrast

On white

15.38
#2B1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1262
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1262#FFFFFF#000000##FFFFFF
##2B12621.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002361
Tritanopia (blue-blind)
#162939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1262;
/* rgb */ color: rgb(43, 18, 98);
/* oklch */ color: oklch(27.8% 0.129 289.4);
Tailwind
colors: {
  custom: {
    50: '#6c538f',
    500: '#2b1262',
    950: '#000000',
  },
}
SCSS
$custom: #2b1262;
$custom-light: #6c538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1262",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 258.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27843,
    "c": 0.12943,
    "h": 289.4
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#2B1262
secondary
#7B9A36
accent
#EC3CB5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B1262

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

Preview Lab → · Contrast checker → · Palette generator →

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