#2B0740#2B0740

#2B0740 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.102 H 309.1°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#2B0740
RGBrgb(43, 7, 64)
HSLhsl(278, 80%, 14%)
HSVhsv(278, 89%, 25%)
CMYKcmyk(32.8%, 89.1%, 0%, 74.9%)
CIE-LABlab(9.29, 28.99, -27.76)
CIE-LCHlch(9.29, 40.13, 316.25°)
OKLaboklab(23.11% 0.064 -0.0788)
OKLCHoklch(23.11% 0.102 309.1)
XYZxyz(1.9975, 1.0358, 4.9442)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0740 #1C4007
analogous
#0F0740 #2B0740 #400739
triadic
#2B0740 #402B07 #07402B
tetradic
#2B0740 #400F07 #1C4007 #073940
square
#2B0740 #400F07 #1C4007 #073940
split-complementary
#2B0740 #394007 #07400F
monochromatic
#13031C #13031C #2B0740 #500D77 #7513AE

Accessibility & contrast

On white

17.40
#2B0740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0740
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0740#FFFFFF#000000##FFFFFF
##2B07401.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#281523
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0740;
/* rgb */ color: rgb(43, 7, 64);
/* oklch */ color: oklch(23.1% 0.102 309.1);
Tailwind
colors: {
  custom: {
    50: '#674b75',
    500: '#2b0740',
    950: '#000000',
  },
}
SCSS
$custom: #2b0740;
$custom-light: #674b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0740",
  "rgb": {
    "r": 43,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 277.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.23112,
    "c": 0.10156,
    "h": 309.1
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#2B0740
secondary
#457F24
accent
#F7317A
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0740

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

Preview Lab → · Contrast checker → · Palette generator →

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