#2B0742#2B0742

#2B0742 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.104 H 307.7°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#2B0742
RGBrgb(43, 7, 66)
HSLhsl(277, 81%, 14%)
HSVhsv(277, 89%, 26%)
CMYKcmyk(34.8%, 89.4%, 0%, 74.1%)
CIE-LABlab(9.47, 29.51, -28.87)
CIE-LCHlch(9.47, 41.28, 315.62°)
OKLaboklab(23.3% 0.0635 -0.0821)
OKLCHoklch(23.3% 0.104 307.7)
XYZxyz(2.0554, 1.0589, 5.2493)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0742 #1E4207
analogous
#0E0742 #2B0742 #42073C
triadic
#2B0742 #422B07 #07422B
tetradic
#2B0742 #420E07 #1E4207 #073C42
square
#2B0742 #420E07 #1E4207 #073C42
split-complementary
#2B0742 #3C4207 #07420E
monochromatic
#12031C #12031C #2B0742 #4F0D79 #7313B1

Accessibility & contrast

On white

17.33
#2B0742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B0742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0742
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0742#FFFFFF#000000##FFFFFF
##2B07421.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001944
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#271625
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0742;
/* rgb */ color: rgb(43, 7, 66);
/* oklch */ color: oklch(23.3% 0.104 307.7);
Tailwind
colors: {
  custom: {
    50: '#684b77',
    500: '#2b0742',
    950: '#000000',
  },
}
SCSS
$custom: #2b0742;
$custom-light: #684b77;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0742",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 276.61,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23302,
    "c": 0.10377,
    "h": 307.7
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#2B0742
secondary
#488124
accent
#F7317E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0742

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

Preview Lab → · Contrast checker → · Palette generator →

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