#2B0F52#2B0F52

#2B0F52 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.113 H 296.6°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#2B0F52
RGBrgb(43, 15, 82)
HSLhsl(265, 69%, 19%)
HSVhsv(265, 82%, 32%)
CMYKcmyk(47.6%, 81.7%, 0%, 67.8%)
CIE-LABlab(12.38, 30.04, -35.26)
CIE-LCHlch(12.38, 46.32, 310.43°)
OKLaboklab(25.82% 0.0505 -0.1009)
OKLCHoklch(25.82% 0.113 296.6)
XYZxyz(2.6897, 1.4644, 8.1219)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F52 #36520F
analogous
#0F1552 #2B0F52 #4D0F52
triadic
#2B0F52 #522B0F #0F522B
tetradic
#2B0F52 #520F15 #36520F #0F524D
square
#2B0F52 #520F15 #36520F #0F524D
split-complementary
#2B0F52 #524D0F #15520F
monochromatic
#0E051A #10061E #2B0F52 #461886 #6122B9

Accessibility & contrast

On white

16.24
#2B0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B0F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F52
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F52#FFFFFF#000000##FFFFFF
##2B0F521.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#212130
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b0f52;
/* rgb */ color: rgb(43, 15, 82);
/* oklch */ color: oklch(25.8% 0.113 296.6);
Tailwind
colors: {
  custom: {
    50: '#695183',
    500: '#2b0f52',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f52;
$custom-light: #695183;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f52",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 265.075,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25818,
    "c": 0.11289,
    "h": 296.6
  },
  "luminance": 0.01464
}

Semantic roles & 50–950 ramp

primary
#2B0F52
secondary
#668C31
accent
#EC3CA2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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