#2B1265#2B1265

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

Color values

HEX#2B1265
RGBrgb(43, 18, 101)
HSLhsl(258, 70%, 23%)
HSVhsv(258, 82%, 40%)
CMYKcmyk(57.4%, 82.2%, 0%, 60.4%)
CIE-LABlab(14.88, 34.22, -43.93)
CIE-LCHlch(14.88, 55.69, 307.92°)
OKLaboklab(28.16% 0.042 -0.1264)
OKLCHoklch(28.16% 0.133 288.4)
XYZxyz(3.5608, 1.8856, 12.4857)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1265 #4C6512
analogous
#122265 #2B1265 #541265
triadic
#2B1265 #652B12 #12652B
tetradic
#2B1265 #651222 #4C6512 #126554
square
#2B1265 #651222 #4C6512 #126554
split-complementary
#2B1265 #655412 #226512
monochromatic
#0B051A #150931 #2B1265 #411B99 #5725CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B1265#FFFFFF#000000##FFFFFF
##2B12651.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)
#002767
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#132A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1265;
/* rgb */ color: rgb(43, 18, 101);
/* oklch */ color: oklch(28.2% 0.133 288.4);
Tailwind
colors: {
  custom: {
    50: '#6c5392',
    500: '#2b1265',
    950: '#000000',
  },
}
SCSS
$custom: #2b1265;
$custom-light: #6c5392;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1265",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 101
  },
  "hsl": {
    "h": 258.072,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28162,
    "c": 0.13317,
    "h": 288.4
  },
  "luminance": 0.01886
}

Semantic roles & 50–950 ramp

primary
#2B1265
secondary
#7E9D36
accent
#ED3BB7
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1265

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

Preview Lab → · Contrast checker → · Palette generator →

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