#2B1862#2B1862

#2B1862 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.122 H 287.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1862
RGBrgb(43, 24, 98)
HSLhsl(255, 61%, 24%)
HSVhsv(255, 76%, 38%)
CMYKcmyk(56.1%, 75.5%, 0%, 61.6%)
CIE-LABlab(15.74, 29.96, -40.53)
CIE-LCHlch(15.74, 50.40, 306.47°)
OKLaboklab(28.68% 0.0375 -0.1165)
OKLCHoklch(28.68% 0.122 287.8)
XYZxyz(3.5269, 2.0485, 11.7625)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1862 #4F6218
analogous
#182A62 #2B1862 #501862
triadic
#2B1862 #622B18 #18622B
tetradic
#2B1862 #62182A #4F6218 #186250
square
#2B1862 #62182A #4F6218 #186250
split-complementary
#2B1862 #625018 #2A6218
monochromatic
#0B0619 #150C31 #2B1862 #412493 #5630C4

Accessibility & contrast

On white

14.90
#2B1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1862
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1862#FFFFFF#000000##FFFFFF
##2B18621.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#162B3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1862;
/* rgb */ color: rgb(43, 24, 98);
/* oklch */ color: oklch(28.7% 0.122 287.8);
Tailwind
colors: {
  custom: {
    50: '#6b578f',
    500: '#2b1862',
    950: '#000000',
  },
}
SCSS
$custom: #2b1862;
$custom-light: #6b578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1862",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 255.405,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28678,
    "c": 0.12235,
    "h": 287.8
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#2B1862
secondary
#81983E
accent
#E444BB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B1862

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

Preview Lab → · Contrast checker → · Palette generator →

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