#2B1853#2B1853

#2B1853 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.102 H 293.3°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#2B1853
RGBrgb(43, 24, 83)
HSLhsl(259, 55%, 21%)
HSVhsv(259, 71%, 33%)
CMYKcmyk(48.2%, 71.1%, 0%, 67.5%)
CIE-LABlab(14.35, 25.12, -32.73)
CIE-LCHlch(14.35, 41.26, 307.51°)
OKLaboklab(27.25% 0.0402 -0.0935)
OKLCHoklch(27.25% 0.102 293.3)
XYZxyz(2.8838, 1.7913, 8.3758)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1853 #405318
analogous
#182253 #2B1853 #481853
triadic
#2B1853 #532B18 #18532B
tetradic
#2B1853 #531822 #405318 #185348
square
#2B1853 #531822 #405318 #185348
split-complementary
#2B1853 #534818 #225318
monochromatic
#0C0718 #120A24 #2B1853 #442682 #5C33B2

Accessibility & contrast

On white

15.46
#2B1853 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2B1853 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1853
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1853#FFFFFF#000000##FFFFFF
##2B18531.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002555
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#202633
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1853;
/* rgb */ color: rgb(43, 24, 83);
/* oklch */ color: oklch(27.3% 0.102 293.3);
Tailwind
colors: {
  custom: {
    50: '#685684',
    500: '#2b1853',
    950: '#000000',
  },
}
SCSS
$custom: #2b1853;
$custom-light: #685684;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1853",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 83
  },
  "hsl": {
    "h": 259.322,
    "s": 55.14,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27252,
    "c": 0.10183,
    "h": 293.3
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#2B1853
secondary
#718A3D
accent
#DE49AE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2B1853

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

Preview Lab → · Contrast checker → · Palette generator →

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