#2B1263#2B1263

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

Color values

HEX#2B1263
RGBrgb(43, 18, 99)
HSLhsl(259, 69%, 23%)
HSVhsv(259, 82%, 39%)
CMYKcmyk(56.6%, 81.8%, 0%, 61.2%)
CIE-LABlab(14.66, 33.61, -42.96)
CIE-LCHlch(14.66, 54.54, 308.04°)
OKLaboklab(27.95% 0.0426 -0.1235)
OKLCHoklch(27.95% 0.131 289)
XYZxyz(3.4640, 1.8469, 11.9759)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1263 #4A6312
analogous
#122163 #2B1263 #541263
triadic
#2B1263 #632B12 #12632B
tetradic
#2B1263 #631221 #4A6312 #126354
square
#2B1263 #631221 #4A6312 #126354
split-complementary
#2B1263 #635412 #216312
monochromatic
#0B051A #15092F #2B1263 #411B97 #5825CB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1263#FFFFFF#000000##FFFFFF
##2B12631.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)
#002765
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#15293A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1263;
/* rgb */ color: rgb(43, 18, 99);
/* oklch */ color: oklch(27.9% 0.131 289.0);
Tailwind
colors: {
  custom: {
    50: '#6c5390',
    500: '#2b1263',
    950: '#000000',
  },
}
SCSS
$custom: #2b1263;
$custom-light: #6c5390;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1263",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 258.519,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27949,
    "c": 0.13068,
    "h": 289
  },
  "luminance": 0.01847
}

Semantic roles & 50–950 ramp

primary
#2B1263
secondary
#7C9B36
accent
#EC3CB6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1263

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

Preview Lab → · Contrast checker → · Palette generator →

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