#2B0748#2B0748

#2B0748 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.9% C 0.110 H 303.8°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#2B0748
RGBrgb(43, 7, 72)
HSLhsl(273, 82%, 15%)
HSVhsv(273, 90%, 28%)
CMYKcmyk(40.3%, 90.3%, 0%, 71.8%)
CIE-LABlab(10.06, 31.08, -32.14)
CIE-LCHlch(10.06, 44.71, 314.03°)
OKLaboklab(23.89% 0.0615 -0.0917)
OKLCHoklch(23.89% 0.11 303.8)
XYZxyz(2.2417, 1.1334, 6.2303)
Luminance0.0113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0748 #244807
analogous
#0B0748 #2B0748 #480744
triadic
#2B0748 #482B07 #07482B
tetradic
#2B0748 #480B07 #244807 #074448
square
#2B0748 #480B07 #244807 #074448
split-complementary
#2B0748 #444807 #07480B
monochromatic
#11031C #11031C #2B0748 #4C0C80 #6E12B8

Accessibility & contrast

On white

17.12
#2B0748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#2B0748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0748
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0748#FFFFFF#000000##FFFFFF
##2B07481.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#251928
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #2b0748;
/* rgb */ color: rgb(43, 7, 72);
/* oklch */ color: oklch(23.9% 0.110 303.8);
Tailwind
colors: {
  custom: {
    50: '#684c7c',
    500: '#2b0748',
    950: '#000000',
  },
}
SCSS
$custom: #2b0748;
$custom-light: #684c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0748",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 72
  },
  "hsl": {
    "h": 273.231,
    "s": 82.278,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23889,
    "c": 0.11042,
    "h": 303.8
  },
  "luminance": 0.01133
}

Semantic roles & 50–950 ramp

primary
#2B0748
secondary
#508724
accent
#F92F89
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0748

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

Preview Lab → · Contrast checker → · Palette generator →

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