#2B1348#2B1348

#2B1348 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.094 H 300.6°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2B1348
RGBrgb(43, 19, 72)
HSLhsl(267, 58%, 18%)
HSVhsv(267, 74%, 28%)
CMYKcmyk(40.3%, 73.6%, 0%, 71.8%)
CIE-LABlab(12.27, 24.81, -28.55)
CIE-LCHlch(12.27, 37.82, 311.00°)
OKLaboklab(25.45% 0.0481 -0.0812)
OKLCHoklch(25.45% 0.094 300.6)
XYZxyz(2.3985, 1.4472, 6.2826)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1348 #304813
analogous
#131548 #2B1348 #451348
triadic
#2B1348 #482B13 #13482B
tetradic
#2B1348 #481315 #304813 #134845
square
#2B1348 #481315 #304813 #134845
split-complementary
#2B1348 #484513 #154813
monochromatic
#0E0618 #0E0618 #2B1348 #482078 #652DA9

Accessibility & contrast

On white

16.29
#2B1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B1348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1348
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1348#FFFFFF#000000##FFFFFF
##2B13481.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#251F2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b1348;
/* rgb */ color: rgb(43, 19, 72);
/* oklch */ color: oklch(25.5% 0.094 300.6);
Tailwind
colors: {
  custom: {
    50: '#67527b',
    500: '#2b1348',
    950: '#000000',
  },
}
SCSS
$custom: #2b1348;
$custom-light: #67527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1348",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 267.17,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25453,
    "c": 0.09439,
    "h": 300.6
  },
  "luminance": 0.01447
}

Semantic roles & 50–950 ramp

primary
#2B1348
secondary
#5F8136
accent
#E1469B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1348

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

Preview Lab → · Contrast checker → · Palette generator →

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