#2B1150#2B1150

#2B1150 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.108 H 297.0°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#2B1150
RGBrgb(43, 17, 80)
HSLhsl(265, 65%, 19%)
HSVhsv(265, 79%, 31%)
CMYKcmyk(46.2%, 78.8%, 0%, 68.6%)
CIE-LABlab(12.57, 28.37, -33.58)
CIE-LCHlch(12.57, 43.96, 310.19°)
OKLaboklab(25.89% 0.049 -0.096)
OKLCHoklch(25.89% 0.108 297)
XYZxyz(2.6443, 1.4936, 7.7368)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1150 #365011
analogous
#111750 #2B1150 #4B1150
triadic
#2B1150 #502B11 #11502B
tetradic
#2B1150 #501117 #365011 #11504B
square
#2B1150 #501117 #365011 #11504B
split-complementary
#2B1150 #504B11 #175011
monochromatic
#0E0519 #10061E #2B1150 #461C82 #6126B5

Accessibility & contrast

On white

16.17
#2B1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1150
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1150#FFFFFF#000000##FFFFFF
##2B11501.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00204F
Tritanopia (blue-blind)
#21212F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1150;
/* rgb */ color: rgb(43, 17, 80);
/* oklch */ color: oklch(25.9% 0.108 297.0);
Tailwind
colors: {
  custom: {
    50: '#695182',
    500: '#2b1150',
    950: '#000000',
  },
}
SCSS
$custom: #2b1150;
$custom-light: #695182;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1150",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 264.762,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25891,
    "c": 0.1078,
    "h": 297
  },
  "luminance": 0.01494
}

Semantic roles & 50–950 ramp

primary
#2B1150
secondary
#668933
accent
#E840A3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B1150

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

Preview Lab → · Contrast checker → · Palette generator →

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