#2B1767#2B1767

#2B1767 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 286.6°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2B1767
RGBrgb(43, 23, 103)
HSLhsl(255, 63%, 25%)
HSVhsv(255, 78%, 40%)
CMYKcmyk(58.3%, 77.7%, 0%, 59.6%)
CIE-LABlab(16.03, 32.15, -43.35)
CIE-LCHlch(16.03, 53.97, 306.56°)
OKLaboklab(29.04% 0.0372 -0.1247)
OKLCHoklch(29.04% 0.13 286.6)
XYZxyz(3.7501, 2.1055, 13.0381)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1767 #536717
analogous
#172B67 #2B1767 #531767
triadic
#2B1767 #672B17 #17672B
tetradic
#2B1767 #67172B #536717 #176753
square
#2B1767 #67172B #536717 #176753
split-complementary
#2B1767 #675317 #2B6717
monochromatic
#0A0619 #160C35 #2B1767 #402299 #552DCB

Accessibility & contrast

On white

14.78
#2B1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1767
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1767#FFFFFF#000000##FFFFFF
##2B17671.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#112D3D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1767;
/* rgb */ color: rgb(43, 23, 103);
/* oklch */ color: oklch(29.0% 0.130 286.6);
Tailwind
colors: {
  custom: {
    50: '#6c5693',
    500: '#2b1767',
    950: '#000000',
  },
}
SCSS
$custom: #2b1767;
$custom-light: #6c5693;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1767",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 255,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29037,
    "c": 0.13016,
    "h": 286.6
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#2B1767
secondary
#859D3D
accent
#E741BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1767

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

Preview Lab → · Contrast checker → · Palette generator →

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