#2B1042#2B1042

#2B1042 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.091 H 305.4°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#2B1042
RGBrgb(43, 16, 66)
HSLhsl(272, 61%, 16%)
HSVhsv(272, 76%, 26%)
CMYKcmyk(34.8%, 75.8%, 0%, 74.1%)
CIE-LABlab(11.12, 24.84, -26.20)
CIE-LCHlch(11.12, 36.11, 313.47°)
OKLaboklab(24.47% 0.0528 -0.0743)
OKLCHoklch(24.47% 0.091 305.4)
XYZxyz(2.1647, 1.2775, 5.2857)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1042 #274210
analogous
#121042 #2B1042 #421040
triadic
#2B1042 #422B10 #10422B
tetradic
#2B1042 #421210 #274210 #104042
square
#2B1042 #421210 #274210 #104042
split-complementary
#2B1042 #404210 #104212
monochromatic
#100619 #100619 #2B1042 #4B1C73 #6B28A5

Accessibility & contrast

On white

16.73
#2B1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2B1042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1042
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1042#FFFFFF#000000##FFFFFF
##2B10421.0016.731.2616.73
#FFFFFF16.731.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#031E41
Tritanopia (blue-blind)
#271B27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b1042;
/* rgb */ color: rgb(43, 16, 66);
/* oklch */ color: oklch(24.5% 0.091 305.4);
Tailwind
colors: {
  custom: {
    50: '#675077',
    500: '#2b1042',
    950: '#000000',
  },
}
SCSS
$custom: #2b1042;
$custom-light: #675077;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1042",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 272.4,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24466,
    "c": 0.09118,
    "h": 305.4
  },
  "luminance": 0.01278
}

Semantic roles & 50–950 ramp

primary
#2B1042
secondary
#547C32
accent
#E4448D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1042

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

Preview Lab → · Contrast checker → · Palette generator →

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