#2B1D68#2B1D68

#2B1D68 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.124 H 284.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2B1D68
RGBrgb(43, 29, 104)
HSLhsl(251, 56%, 26%)
HSVhsv(251, 72%, 41%)
CMYKcmyk(58.7%, 72.1%, 0%, 59.2%)
CIE-LABlab(17.42, 28.89, -41.73)
CIE-LCHlch(17.42, 50.76, 304.70°)
OKLaboklab(30.06% 0.0314 -0.12)
OKLCHoklch(30.06% 0.124 284.7)
XYZxyz(3.9336, 2.3916, 13.3484)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D68 #5A681D
analogous
#1D3468 #2B1D68 #501D68
triadic
#2B1D68 #682B1D #1D682B
tetradic
#2B1D68 #681D34 #5A681D #1D6850
square
#2B1D68 #681D34 #5A681D #1D6850
split-complementary
#2B1D68 #68501D #34681D
monochromatic
#0A0718 #171038 #2B1D68 #3F2A98 #5338C7

Accessibility & contrast

On white

14.20
#2B1D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D68
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D68#FFFFFF#000000##FFFFFF
##2B1D681.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002867
Tritanopia (blue-blind)
#0F3040
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1d68;
/* rgb */ color: rgb(43, 29, 104);
/* oklch */ color: oklch(30.1% 0.124 284.7);
Tailwind
colors: {
  custom: {
    50: '#6c5a94',
    500: '#2b1d68',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d68;
$custom-light: #6c5a94;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d68",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 251.2,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30057,
    "c": 0.12405,
    "h": 284.7
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#2B1D68
secondary
#8C9D44
accent
#E048C3
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2B1D68

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

Preview Lab → · Contrast checker → · Palette generator →

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