#2B1663#2B1663

#2B1663 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.126 H 288.1°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2B1663
RGBrgb(43, 22, 99)
HSLhsl(256, 64%, 24%)
HSVhsv(256, 78%, 39%)
CMYKcmyk(56.6%, 77.8%, 0%, 61.2%)
CIE-LABlab(15.42, 31.44, -41.71)
CIE-LCHlch(15.42, 52.23, 307.01°)
OKLaboklab(28.49% 0.0391 -0.1199)
OKLCHoklch(28.49% 0.126 288.1)
XYZxyz(3.5346, 1.9881, 11.9995)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1663 #4E6316
analogous
#162763 #2B1663 #511663
triadic
#2B1663 #632B16 #16632B
tetradic
#2B1663 #631627 #4E6316 #166351
square
#2B1663 #631627 #4E6316 #166351
split-complementary
#2B1663 #635116 #276316
monochromatic
#0B0619 #150B31 #2B1663 #412195 #562CC7

Accessibility & contrast

On white

15.03
#2B1663 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1663
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1663#FFFFFF#000000##FFFFFF
##2B16631.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002562
Tritanopia (blue-blind)
#152B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1663;
/* rgb */ color: rgb(43, 22, 99);
/* oklch */ color: oklch(28.5% 0.126 288.1);
Tailwind
colors: {
  custom: {
    50: '#6b5590',
    500: '#2b1663',
    950: '#000000',
  },
}
SCSS
$custom: #2b1663;
$custom-light: #6b5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1663",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 99
  },
  "hsl": {
    "h": 256.364,
    "s": 63.636,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28485,
    "c": 0.12614,
    "h": 288.1
  },
  "luminance": 0.01988
}

Semantic roles & 50–950 ramp

primary
#2B1663
secondary
#809A3B
accent
#E741BA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1663

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

Preview Lab → · Contrast checker → · Palette generator →

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