#2B0F5C#2B0F5C

#2B0F5C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.125 H 292.2°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#2B0F5C
RGBrgb(43, 15, 92)
HSLhsl(262, 72%, 21%)
HSVhsv(262, 84%, 36%)
CMYKcmyk(53.3%, 83.7%, 0%, 63.9%)
CIE-LABlab(13.40, 33.00, -40.37)
CIE-LCHlch(13.40, 52.14, 309.27°)
OKLaboklab(26.84% 0.0474 -0.1159)
OKLCHoklch(26.84% 0.125 292.2)
XYZxyz(3.0983, 1.6278, 10.2741)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F5C #405C0F
analogous
#0F195C #2B0F5C #510F5C
triadic
#2B0F5C #5C2B0F #0F5C2B
tetradic
#2B0F5C #5C0F19 #405C0F #0F5C51
square
#2B0F5C #5C0F19 #405C0F #0F5C51
split-complementary
#2B0F5C #5C510F #195C0F
monochromatic
#0C041A #120627 #2B0F5C #441891 #5C20C5

Accessibility & contrast

On white

15.84
#2B0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B0F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F5C
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F5C#FFFFFF#000000##FFFFFF
##2B0F5C1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#1B2535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b0f5c;
/* rgb */ color: rgb(43, 15, 92);
/* oklch */ color: oklch(26.8% 0.125 292.2);
Tailwind
colors: {
  custom: {
    50: '#6b518b',
    500: '#2b0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f5c;
$custom-light: #6b518b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f5c",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 261.818,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26843,
    "c": 0.12523,
    "h": 292.2
  },
  "luminance": 0.01628
}

Semantic roles & 50–950 ramp

primary
#2B0F5C
secondary
#719531
accent
#EF39AD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2B0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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