#2B1867#2B1867

#2B1867 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.129 H 286.4°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#2B1867
RGBrgb(43, 24, 103)
HSLhsl(254, 62%, 25%)
HSVhsv(254, 77%, 40%)
CMYKcmyk(58.3%, 76.7%, 0%, 59.6%)
CIE-LABlab(16.23, 31.58, -43.02)
CIE-LCHlch(16.23, 53.36, 306.28°)
OKLaboklab(29.18% 0.0363 -0.1238)
OKLCHoklch(29.18% 0.129 286.4)
XYZxyz(3.7703, 2.1459, 13.0449)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1867 #546718
analogous
#182D67 #2B1867 #521867
triadic
#2B1867 #672B18 #18672B
tetradic
#2B1867 #67182D #546718 #186752
square
#2B1867 #67182D #546718 #186752
split-complementary
#2B1867 #675218 #2D6718
monochromatic
#0A0619 #160C35 #2B1867 #402499 #542FCA

Accessibility & contrast

On white

14.69
#2B1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2B1867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1867
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1867#FFFFFF#000000##FFFFFF
##2B18671.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002666
Tritanopia (blue-blind)
#102D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1867;
/* rgb */ color: rgb(43, 24, 103);
/* oklch */ color: oklch(29.2% 0.129 286.4);
Tailwind
colors: {
  custom: {
    50: '#6c5793',
    500: '#2b1867',
    950: '#000000',
  },
}
SCSS
$custom: #2b1867;
$custom-light: #6c5793;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1867",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 254.43,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29181,
    "c": 0.12898,
    "h": 286.4
  },
  "luminance": 0.02146
}

Semantic roles & 50–950 ramp

primary
#2B1867
secondary
#869D3E
accent
#E543BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1867

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

Preview Lab → · Contrast checker → · Palette generator →

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