#2B0240#2B0240

#2B0240 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.5% C 0.109 H 310.2°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#2B0240
RGBrgb(43, 2, 64)
HSLhsl(280, 94%, 13%)
HSVhsv(280, 97%, 25%)
CMYKcmyk(32.8%, 96.9%, 0%, 74.9%)
CIE-LABlab(8.37, 31.68, -29.25)
CIE-LCHlch(8.37, 43.12, 317.28°)
OKLaboklab(22.48% 0.0702 -0.0831)
OKLCHoklch(22.48% 0.109 310.2)
XYZxyz(1.9432, 0.9272, 4.9261)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0240 #174002
analogous
#0C0240 #2B0240 #400236
triadic
#2B0240 #402B02 #02402B
tetradic
#2B0240 #400C02 #174002 #023640
square
#2B0240 #400C02 #174002 #023640
split-complementary
#2B0240 #364002 #02400C
monochromatic
#14011E #14011E #2B0240 #53047B #7B06B7

Accessibility & contrast

On white

17.72
#2B0240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#2B0240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0240
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0240#FFFFFF#000000##FFFFFF
##2B02401.0017.721.1917.72
#FFFFFF17.721.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#281222
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2b0240;
/* rgb */ color: rgb(43, 2, 64);
/* oklch */ color: oklch(22.5% 0.109 310.2);
Tailwind
colors: {
  custom: {
    50: '#684975',
    500: '#2b0240',
    950: '#000000',
  },
}
SCSS
$custom: #2b0240;
$custom-light: #684975;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0240",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 64
  },
  "hsl": {
    "h": 279.677,
    "s": 93.939,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22476,
    "c": 0.10885,
    "h": 310.2
  },
  "luminance": 0.00927
}

Semantic roles & 50–950 ramp

primary
#2B0240
secondary
#3E831B
accent
#FF2971
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0240

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

Preview Lab → · Contrast checker → · Palette generator →

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