#2B1852#2B1852

#2B1852 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.100 H 293.7°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2B1852
RGBrgb(43, 24, 82)
HSLhsl(260, 55%, 21%)
HSVhsv(260, 71%, 32%)
CMYKcmyk(47.6%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.26, 24.80, -32.19)
CIE-LCHlch(14.26, 40.64, 307.61°)
OKLaboklab(27.16% 0.0403 -0.092)
OKLCHoklch(27.16% 0.1 293.7)
XYZxyz(2.8455, 1.7760, 8.1739)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1852 #3F5218
analogous
#182252 #2B1852 #481852
triadic
#2B1852 #522B18 #18522B
tetradic
#2B1852 #521822 #3F5218 #185248
square
#2B1852 #521822 #3F5218 #185248
split-complementary
#2B1852 #524818 #225218
monochromatic
#0C0718 #120A23 #2B1852 #442681 #5D34B1

Accessibility & contrast

On white

15.50
#2B1852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1852
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1852#FFFFFF#000000##FFFFFF
##2B18521.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#202632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2b1852;
/* rgb */ color: rgb(43, 24, 82);
/* oklch */ color: oklch(27.2% 0.100 293.7);
Tailwind
colors: {
  custom: {
    50: '#685683',
    500: '#2b1852',
    950: '#000000',
  },
}
SCSS
$custom: #2b1852;
$custom-light: #685683;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1852",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 259.655,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27162,
    "c": 0.10042,
    "h": 293.7
  },
  "luminance": 0.01776
}

Semantic roles & 50–950 ramp

primary
#2B1852
secondary
#70893D
accent
#DE4AAD
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2B1852

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

Preview Lab → · Contrast checker → · Palette generator →

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