#2B0747#2B0747

#2B0747 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.8% C 0.109 H 304.4°. Best body text is #FFFFFF at 17.16:1 contrast (WCAG AA passes).

Color values

HEX#2B0747
RGBrgb(43, 7, 71)
HSLhsl(274, 82%, 15%)
HSVhsv(274, 90%, 28%)
CMYKcmyk(39.4%, 90.1%, 0%, 72.2%)
CIE-LABlab(9.96, 30.81, -31.61)
CIE-LCHlch(9.96, 44.14, 314.27°)
OKLaboklab(23.79% 0.0618 -0.0901)
OKLCHoklch(23.79% 0.109 304.4)
XYZxyz(2.2093, 1.1205, 6.0599)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0747 #234707
analogous
#0B0747 #2B0747 #470743
triadic
#2B0747 #472B07 #07472B
tetradic
#2B0747 #470B07 #234707 #074347
square
#2B0747 #470B07 #234707 #074347
split-complementary
#2B0747 #434707 #07470B
monochromatic
#11031C #11031C #2B0747 #4D0C7F #6E12B6

Accessibility & contrast

On white

17.16
#2B0747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#2B0747 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0747
17.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0747#FFFFFF#000000##FFFFFF
##2B07471.0017.161.2217.16
#FFFFFF17.161.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001B46
Tritanopia (blue-blind)
#251827
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0747;
/* rgb */ color: rgb(43, 7, 71);
/* oklch */ color: oklch(23.8% 0.109 304.4);
Tailwind
colors: {
  custom: {
    50: '#684c7b',
    500: '#2b0747',
    950: '#000000',
  },
}
SCSS
$custom: #2b0747;
$custom-light: #684c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0747",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 71
  },
  "hsl": {
    "h": 273.75,
    "s": 82.051,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23789,
    "c": 0.10931,
    "h": 304.4
  },
  "luminance": 0.0112
}

Semantic roles & 50–950 ramp

primary
#2B0747
secondary
#4F8624
accent
#F82F87
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #2B0747

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

Preview Lab → · Contrast checker → · Palette generator →

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