#2B1468#2B1468

#2B1468 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.135 H 287.0°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2B1468
RGBrgb(43, 20, 104)
HSLhsl(256, 68%, 24%)
HSVhsv(256, 81%, 41%)
CMYKcmyk(58.7%, 80.8%, 0%, 59.2%)
CIE-LABlab(15.56, 34.11, -44.79)
CIE-LCHlch(15.56, 56.30, 307.29°)
OKLaboklab(28.74% 0.0394 -0.1289)
OKLCHoklch(28.74% 0.135 287)
XYZxyz(3.7444, 2.0132, 13.2853)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1468 #516814
analogous
#142768 #2B1468 #551468
triadic
#2B1468 #682B14 #14682B
tetradic
#2B1468 #681427 #516814 #146855
square
#2B1468 #681427 #516814 #146855
split-complementary
#2B1468 #685514 #276814
monochromatic
#0B051A #160A35 #2B1468 #401E9B #5528CF

Accessibility & contrast

On white

14.97
#2B1468 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B1468 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1468
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1468#FFFFFF#000000##FFFFFF
##2B14681.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002466
Tritanopia (blue-blind)
#102C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1468;
/* rgb */ color: rgb(43, 20, 104);
/* oklch */ color: oklch(28.7% 0.135 287.0);
Tailwind
colors: {
  custom: {
    50: '#6d5594',
    500: '#2b1468',
    950: '#000000',
  },
}
SCSS
$custom: #2b1468;
$custom-light: #6d5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1468",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 104
  },
  "hsl": {
    "h": 256.429,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.13481,
    "h": 287
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#2B1468
secondary
#839F39
accent
#EB3DBB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B1468

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

Preview Lab → · Contrast checker → · Palette generator →

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