#2B1659#2B1659

#2B1659 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.113 H 291.6°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1659
RGBrgb(43, 22, 89)
HSLhsl(259, 60%, 22%)
HSVhsv(259, 75%, 35%)
CMYKcmyk(51.7%, 75.3%, 0%, 65.1%)
CIE-LABlab(14.45, 28.26, -36.63)
CIE-LCHlch(14.45, 46.26, 307.65°)
OKLaboklab(27.49% 0.0415 -0.105)
OKLCHoklch(27.49% 0.113 291.6)
XYZxyz(3.0858, 1.8086, 9.6358)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1659 #445916
analogous
#162359 #2B1659 #4D1659
triadic
#2B1659 #592B16 #16592B
tetradic
#2B1659 #591623 #445916 #16594D
square
#2B1659 #591623 #445916 #16594D
split-complementary
#2B1659 #594D16 #235916
monochromatic
#0C0619 #130A28 #2B1659 #43228A #5A2EBB

Accessibility & contrast

On white

15.42
#2B1659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1659
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1659#FFFFFF#000000##FFFFFF
##2B16591.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002358
Tritanopia (blue-blind)
#1C2735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1659;
/* rgb */ color: rgb(43, 22, 89);
/* oklch */ color: oklch(27.5% 0.113 291.6);
Tailwind
colors: {
  custom: {
    50: '#6a5589',
    500: '#2b1659',
    950: '#000000',
  },
}
SCSS
$custom: #2b1659;
$custom-light: #6a5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1659",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 89
  },
  "hsl": {
    "h": 258.806,
    "s": 60.36,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27492,
    "c": 0.11291,
    "h": 291.6
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#2B1659
secondary
#75903B
accent
#E444B2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1659

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

Preview Lab → · Contrast checker → · Palette generator →

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