#2B1863#2B1863

#2B1863 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.124 H 287.5°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#2B1863
RGBrgb(43, 24, 99)
HSLhsl(255, 61%, 24%)
HSVhsv(255, 76%, 39%)
CMYKcmyk(56.6%, 75.8%, 0%, 61.2%)
CIE-LABlab(15.84, 30.29, -41.03)
CIE-LCHlch(15.84, 51.00, 306.43°)
OKLaboklab(28.78% 0.0373 -0.1179)
OKLCHoklch(28.78% 0.124 287.5)
XYZxyz(3.5744, 2.0675, 12.0127)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1863 #506318
analogous
#182B63 #2B1863 #511863
triadic
#2B1863 #632B18 #18632B
tetradic
#2B1863 #63182B #506318 #186351
square
#2B1863 #63182B #506318 #186351
split-complementary
#2B1863 #635118 #2B6318
monochromatic
#0B0619 #160C32 #2B1863 #402494 #5630C6

Accessibility & contrast

On white

14.86
#2B1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1863
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1863#FFFFFF#000000##FFFFFF
##2B18631.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1863;
/* rgb */ color: rgb(43, 24, 99);
/* oklch */ color: oklch(28.8% 0.124 287.5);
Tailwind
colors: {
  custom: {
    50: '#6b5790',
    500: '#2b1863',
    950: '#000000',
  },
}
SCSS
$custom: #2b1863;
$custom-light: #6b5790;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1863",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 255.2,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28778,
    "c": 0.12368,
    "h": 287.5
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#2B1863
secondary
#82993E
accent
#E444BB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1863

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

Preview Lab → · Contrast checker → · Palette generator →

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