#2B1857#2B1857

#2B1857 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.107 H 291.7°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2B1857
RGBrgb(43, 24, 87)
HSLhsl(258, 57%, 22%)
HSVhsv(258, 72%, 34%)
CMYKcmyk(50.6%, 72.4%, 0%, 65.9%)
CIE-LABlab(14.71, 26.40, -34.86)
CIE-LCHlch(14.71, 43.73, 307.14°)
OKLaboklab(27.62% 0.0396 -0.0998)
OKLCHoklch(27.62% 0.107 291.7)
XYZxyz(3.0427, 1.8549, 9.2127)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1857 #445718
analogous
#182557 #2B1857 #4B1857
triadic
#2B1857 #572B18 #18572B
tetradic
#2B1857 #571825 #445718 #18574B
square
#2B1857 #571825 #445718 #18574B
split-complementary
#2B1857 #574B18 #255718
monochromatic
#0C0718 #130B27 #2B1857 #432587 #5A32B7

Accessibility & contrast

On white

15.32
#2B1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1857
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1857#FFFFFF#000000##FFFFFF
##2B18571.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#1D2735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b1857;
/* rgb */ color: rgb(43, 24, 87);
/* oklch */ color: oklch(27.6% 0.107 291.7);
Tailwind
colors: {
  custom: {
    50: '#695687',
    500: '#2b1857',
    950: '#000000',
  },
}
SCSS
$custom: #2b1857;
$custom-light: #695687;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1857",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 258.095,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27619,
    "c": 0.1074,
    "h": 291.7
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#2B1857
secondary
#758E3D
accent
#E048B2
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1857

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

Preview Lab → · Contrast checker → · Palette generator →

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