#2B1149#2B1149

#2B1149 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.099 H 300.7°. Best body text is #FFFFFF at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1149
RGBrgb(43, 17, 73)
HSLhsl(268, 62%, 18%)
HSVhsv(268, 77%, 29%)
CMYKcmyk(41.1%, 76.7%, 0%, 71.4%)
CIE-LABlab(11.93, 26.29, -29.79)
CIE-LCHlch(11.93, 39.73, 311.43°)
OKLaboklab(25.24% 0.0504 -0.0849)
OKLCHoklch(25.24% 0.099 300.7)
XYZxyz(2.3990, 1.3955, 6.4450)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1149 #2F4911
analogous
#111349 #2B1149 #471149
triadic
#2B1149 #492B11 #11492B
tetradic
#2B1149 #491113 #2F4911 #114947
square
#2B1149 #491113 #2F4911 #114947
split-complementary
#2B1149 #494711 #134911
monochromatic
#0F0619 #0F0619 #2B1149 #481D7B #6528AC

Accessibility & contrast

On white

16.42
#2B1149 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2B1149 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1149
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1149#FFFFFF#000000##FFFFFF
##2B11491.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#001F48
Tritanopia (blue-blind)
#241E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1149;
/* rgb */ color: rgb(43, 17, 73);
/* oklch */ color: oklch(25.2% 0.099 300.7);
Tailwind
colors: {
  custom: {
    50: '#68517c',
    500: '#2b1149',
    950: '#000000',
  },
}
SCSS
$custom: #2b1149;
$custom-light: #68517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1149",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 73
  },
  "hsl": {
    "h": 267.857,
    "s": 62.222,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25236,
    "c": 0.09874,
    "h": 300.7
  },
  "luminance": 0.01396
}

Semantic roles & 50–950 ramp

primary
#2B1149
secondary
#5E8233
accent
#E5439A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B1149

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

Preview Lab → · Contrast checker → · Palette generator →

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