#2B0948#2B0948

#2B0948 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.108 H 303.4°. Best body text is #FFFFFF at 17.00:1 contrast (WCAG AA passes).

Color values

HEX#2B0948
RGBrgb(43, 9, 72)
HSLhsl(272, 78%, 16%)
HSVhsv(272, 88%, 28%)
CMYKcmyk(40.3%, 87.5%, 0%, 71.8%)
CIE-LABlab(10.39, 30.12, -31.61)
CIE-LCHlch(10.39, 43.66, 313.62°)
OKLaboklab(24.12% 0.0595 -0.0902)
OKLCHoklch(24.12% 0.108 303.4)
XYZxyz(2.2634, 1.1768, 6.2375)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0948 #264809
analogous
#0B0948 #2B0948 #480945
triadic
#2B0948 #482B09 #09482B
tetradic
#2B0948 #480B09 #264809 #094548
square
#2B0948 #480B09 #264809 #094548
split-complementary
#2B0948 #454809 #09480B
monochromatic
#10031B #10031B #2B0948 #4B107E #6C17B5

Accessibility & contrast

On white

17.00
#2B0948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B0948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0948
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0948#FFFFFF#000000##FFFFFF
##2B09481.0017.001.2417.00
#FFFFFF17.001.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#251A29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2b0948;
/* rgb */ color: rgb(43, 9, 72);
/* oklch */ color: oklch(24.1% 0.108 303.4);
Tailwind
colors: {
  custom: {
    50: '#684d7c',
    500: '#2b0948',
    950: '#000000',
  },
}
SCSS
$custom: #2b0948;
$custom-light: #684d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0948",
  "rgb": {
    "r": 43,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 272.381,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24118,
    "c": 0.108,
    "h": 303.4
  },
  "luminance": 0.01177
}

Semantic roles & 50–950 ramp

primary
#2B0948
secondary
#538527
accent
#F4348C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0948

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

Preview Lab → · Contrast checker → · Palette generator →

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