#2B0C51#2B0C51

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

Color values

HEX#2B0C51
RGBrgb(43, 12, 81)
HSLhsl(267, 74%, 18%)
HSVhsv(267, 85%, 32%)
CMYKcmyk(46.9%, 85.2%, 0%, 68.2%)
CIE-LABlab(11.76, 31.24, -35.59)
CIE-LCHlch(11.76, 47.35, 311.28°)
OKLaboklab(25.35% 0.0537 -0.1019)
OKLCHoklch(25.35% 0.115 297.8)
XYZxyz(2.6125, 1.3706, 7.9099)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0C51 #32510C
analogous
#0C0F51 #2B0C51 #4D0C51
triadic
#2B0C51 #512B0C #0C512B
tetradic
#2B0C51 #510C0F #32510C #0C514D
square
#2B0C51 #510C0F #32510C #0C514D
split-complementary
#2B0C51 #514D0C #0F510C
monochromatic
#0E041B #0F041C #2B0C51 #471486 #641CBC

Accessibility & contrast

On white

16.48
#2B0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0C51
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0C51#FFFFFF#000000##FFFFFF
##2B0C511.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F53
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#211F2E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b0c51;
/* rgb */ color: rgb(43, 12, 81);
/* oklch */ color: oklch(25.4% 0.115 297.8);
Tailwind
colors: {
  custom: {
    50: '#694f83',
    500: '#2b0c51',
    950: '#000000',
  },
}
SCSS
$custom: #2b0c51;
$custom-light: #694f83;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0c51",
  "rgb": {
    "r": 43,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 266.957,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25353,
    "c": 0.11518,
    "h": 297.8
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#2B0C51
secondary
#618C2C
accent
#F1379D
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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