#2B0D52#2B0D52

#2B0D52 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.115 H 297.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#2B0D52
RGBrgb(43, 13, 82)
HSLhsl(266, 73%, 19%)
HSVhsv(266, 84%, 32%)
CMYKcmyk(47.6%, 84.1%, 0%, 67.8%)
CIE-LABlab(12.03, 31.05, -35.84)
CIE-LCHlch(12.03, 47.41, 310.91°)
OKLaboklab(25.57% 0.0525 -0.1026)
OKLCHoklch(25.57% 0.115 297.1)
XYZxyz(2.6628, 1.4106, 8.1130)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0D52 #34520D
analogous
#0D1152 #2B0D52 #4D0D52
triadic
#2B0D52 #522B0D #0D522B
tetradic
#2B0D52 #520D11 #34520D #0D524D
square
#2B0D52 #520D11 #34520D #0D524D
split-complementary
#2B0D52 #524D0D #11520D
monochromatic
#0E041A #0F051D #2B0D52 #471587 #621EBC

Accessibility & contrast

On white

16.38
#2B0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0D52
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0D52#FFFFFF#000000##FFFFFF
##2B0D521.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#21202F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b0d52;
/* rgb */ color: rgb(43, 13, 82);
/* oklch */ color: oklch(25.6% 0.115 297.1);
Tailwind
colors: {
  custom: {
    50: '#694f83',
    500: '#2b0d52',
    950: '#000000',
  },
}
SCSS
$custom: #2b0d52;
$custom-light: #694f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0d52",
  "rgb": {
    "r": 43,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 266.087,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25571,
    "c": 0.11526,
    "h": 297.1
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#2B0D52
secondary
#648D2E
accent
#EF38A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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