#2B1967#2B1967

#2B1967 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.128 H 286.1°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2B1967
RGBrgb(43, 25, 103)
HSLhsl(254, 61%, 25%)
HSVhsv(254, 76%, 40%)
CMYKcmyk(58.3%, 75.7%, 0%, 59.6%)
CIE-LABlab(16.44, 30.99, -42.68)
CIE-LCHlch(16.44, 52.74, 305.99°)
OKLaboklab(29.33% 0.0354 -0.1228)
OKLCHoklch(29.33% 0.128 286.1)
XYZxyz(3.7913, 2.1879, 13.0519)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1967 #556719
analogous
#192E67 #2B1967 #521967
triadic
#2B1967 #672B19 #19672B
tetradic
#2B1967 #67192E #556719 #196752
square
#2B1967 #67192E #556719 #196752
split-complementary
#2B1967 #675219 #2E6719
monochromatic
#0A0619 #160D36 #2B1967 #402598 #5431C9

Accessibility & contrast

On white

14.61
#2B1967 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B1967 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1967
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1967#FFFFFF#000000##FFFFFF
##2B19671.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#102E3E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b1967;
/* rgb */ color: rgb(43, 25, 103);
/* oklch */ color: oklch(29.3% 0.128 286.1);
Tailwind
colors: {
  custom: {
    50: '#6c5793',
    500: '#2b1967',
    950: '#000000',
  },
}
SCSS
$custom: #2b1967;
$custom-light: #6c5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1967",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 103
  },
  "hsl": {
    "h": 253.846,
    "s": 60.938,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2933,
    "c": 0.12776,
    "h": 286.1
  },
  "luminance": 0.02188
}

Semantic roles & 50–950 ramp

primary
#2B1967
secondary
#879D3F
accent
#E444BF
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1967

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

Preview Lab → · Contrast checker → · Palette generator →

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