#2B0227#2B0227

#2B0227 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.3% C 0.085 H 332.6°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#2B0227
RGBrgb(43, 2, 39)
HSLhsl(306, 91%, 9%)
HSVhsv(306, 95%, 17%)
CMYKcmyk(0%, 95.3%, 9.3%, 83.1%)
CIE-LABlab(6.36, 25.74, -14.07)
CIE-LCHlch(6.36, 29.33, 331.34°)
OKLaboklab(20.31% 0.0758 -0.0394)
OKLCHoklch(20.31% 0.085 332.6)
XYZxyz(1.3842, 0.7036, 1.9820)
Luminance0.0070 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0227 #022B06
analogous
#1B022B #2B0227 #2B0213
triadic
#2B0227 #272B02 #02272B
tetradic
#2B0227 #2B1B02 #022B06 #02132B
square
#2B0227 #2B1B02 #022B06 #02132B
split-complementary
#2B0227 #132B02 #022B1B
monochromatic
#1D011B #1D011B #2B0227 #65055C #A00791

Accessibility & contrast

On white

18.41
#2B0227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#2B0227 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0227
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0227#FFFFFF#000000##FFFFFF
##2B02271.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011028
Deuteranopia (green-blind)
#0F1626
Tritanopia (blue-blind)
#2D0513
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #2b0227;
/* rgb */ color: rgb(43, 2, 39);
/* oklch */ color: oklch(20.3% 0.085 332.6);
Tailwind
colors: {
  custom: {
    50: '#664761',
    500: '#2b0227',
    950: '#000000',
  },
}
SCSS
$custom: #2b0227;
$custom-light: #664761;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0227",
  "rgb": {
    "r": 43,
    "g": 2,
    "b": 39
  },
  "hsl": {
    "h": 305.854,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.20305,
    "c": 0.08537,
    "h": 332.6
  },
  "luminance": 0.00703
}

Semantic roles & 50–950 ramp

primary
#2B0227
secondary
#197021
accent
#FF3E29
background
#F6F4F5
surface
#EBE6E9
border
#C6C2C5
text
#060005
muted
#7A7779

Preview Lab

Preview with #2B0227

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

Preview Lab → · Contrast checker → · Palette generator →

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