#2B0D58#2B0D58

#2B0D58 is a dark, vivid violet. Relative luminance 0.015; OKLCH L 26.2% C 0.122 H 294.3°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#2B0D58
RGBrgb(43, 13, 88)
HSLhsl(264, 74%, 20%)
HSVhsv(264, 85%, 35%)
CMYKcmyk(51.1%, 85.2%, 0%, 65.5%)
CIE-LABlab(12.65, 32.79, -38.91)
CIE-LCHlch(12.65, 50.88, 310.12°)
OKLaboklab(26.19% 0.0505 -0.1116)
OKLCHoklch(26.19% 0.122 294.3)
XYZxyz(2.9012, 1.5059, 9.3684)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0D58 #3A580D
analogous
#0D1558 #2B0D58 #510D58
triadic
#2B0D58 #582B0D #0D582B
tetradic
#2B0D58 #580D15 #3A580D #0D5851
square
#2B0D58 #580D15 #3A580D #0D5851
split-complementary
#2B0D58 #58510D #15580D
monochromatic
#0D041B #110523 #2B0D58 #45158D #5F1DC3

Accessibility & contrast

On white

16.14
#2B0D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B0D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0D58
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0D58#FFFFFF#000000##FFFFFF
##2B0D581.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#1D2233
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b0d58;
/* rgb */ color: rgb(43, 13, 88);
/* oklch */ color: oklch(26.2% 0.122 294.3);
Tailwind
colors: {
  custom: {
    50: '#6a5088',
    500: '#2b0d58',
    950: '#000000',
  },
}
SCSS
$custom: #2b0d58;
$custom-light: #6a5088;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0d58",
  "rgb": {
    "r": 43,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 264,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.12249,
    "h": 294.3
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#2B0D58
secondary
#6A932E
accent
#F137A6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B0D58

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

Preview Lab → · Contrast checker → · Palette generator →

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