#2B1855#2B1855

#2B1855 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.105 H 292.4°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2B1855
RGBrgb(43, 24, 85)
HSLhsl(259, 56%, 21%)
HSVhsv(259, 72%, 33%)
CMYKcmyk(49.4%, 71.8%, 0%, 66.7%)
CIE-LABlab(14.53, 25.76, -33.80)
CIE-LCHlch(14.53, 42.50, 307.32°)
OKLaboklab(27.43% 0.0399 -0.0967)
OKLCHoklch(27.43% 0.105 292.4)
XYZxyz(2.9621, 1.8226, 8.7883)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1855 #425518
analogous
#182455 #2B1855 #4A1855
triadic
#2B1855 #552B18 #18552B
tetradic
#2B1855 #551824 #425518 #18554A
square
#2B1855 #551824 #425518 #18554A
split-complementary
#2B1855 #554A18 #245518
monochromatic
#0C0718 #130B25 #2B1855 #432585 #5B33B4

Accessibility & contrast

On white

15.39
#2B1855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1855
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1855#FFFFFF#000000##FFFFFF
##2B18551.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#1F2734
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1855;
/* rgb */ color: rgb(43, 24, 85);
/* oklch */ color: oklch(27.4% 0.105 292.4);
Tailwind
colors: {
  custom: {
    50: '#695685',
    500: '#2b1855',
    950: '#000000',
  },
}
SCSS
$custom: #2b1855;
$custom-light: #695685;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1855",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 258.689,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27434,
    "c": 0.10462,
    "h": 292.4
  },
  "luminance": 0.01823
}

Semantic roles & 50–950 ramp

primary
#2B1855
secondary
#738C3D
accent
#DF49B0
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1855

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

Preview Lab → · Contrast checker → · Palette generator →

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