#2B0239#2B0239

#2B0239 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.8% C 0.102 H 315.5°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#2B0239
RGBrgb(43, 2, 57)
HSLhsl(285, 93%, 12%)
HSVhsv(285, 96%, 22%)
CMYKcmyk(24.6%, 96.5%, 0%, 77.6%)
CIE-LABlab(7.70, 30.03, -25.30)
CIE-LCHlch(7.70, 39.27, 319.89°)
OKLaboklab(21.8% 0.0727 -0.0716)
OKLCHoklch(21.8% 0.102 315.5)
XYZxyz(1.7564, 0.8525, 3.9421)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0239 #103902
analogous
#100239 #2B0239 #39022C
triadic
#2B0239 #392B02 #02392B
tetradic
#2B0239 #391002 #103902 #022C39
square
#2B0239 #391002 #103902 #022C39
split-complementary
#2B0239 #2C3902 #023910
monochromatic
#16011E #16011E #2B0239 #580474 #8406AF

Accessibility & contrast

On white

17.94
#2B0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2B0239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0239
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0239#FFFFFF#000000##FFFFFF
##2B02391.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001838
Tritanopia (blue-blind)
#2A0F1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b0239;
/* rgb */ color: rgb(43, 2, 57);
/* oklch */ color: oklch(21.8% 0.102 315.5);
Tailwind
colors: {
  custom: {
    50: '#674870',
    500: '#2b0239',
    950: '#000000',
  },
}
SCSS
$custom: #2b0239;
$custom-light: #674870;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0239",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 284.727,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.21802,
    "c": 0.10202,
    "h": 315.5
  },
  "luminance": 0.00852
}

Semantic roles & 50–950 ramp

primary
#2B0239
secondary
#337D1A
accent
#FF295F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0239

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

Preview Lab → · Contrast checker → · Palette generator →

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