#2F0228#2F0228

#2F0228 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.2% C 0.089 H 335.5°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#2F0228
RGBrgb(47, 2, 40)
HSLhsl(309, 92%, 10%)
HSVhsv(309, 96%, 18%)
CMYKcmyk(0%, 95.7%, 14.9%, 81.6%)
CIE-LABlab(7.24, 27.37, -13.39)
CIE-LCHlch(7.24, 30.47, 333.93°)
OKLaboklab(21.2% 0.0806 -0.0368)
OKLCHoklch(21.2% 0.089 335.5)
XYZxyz(1.5770, 0.8011, 2.0786)
Luminance0.0080 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F0228 #022F09
analogous
#20022F #2F0228 #2F0212
triadic
#2F0228 #282F02 #02282F
tetradic
#2F0228 #2F2002 #022F09 #02122F
square
#2F0228 #2F2002 #022F09 #02122F
split-complementary
#2F0228 #122F02 #022F20
monochromatic
#1D0119 #1D0119 #2F0228 #6A045A #A4078C

Accessibility & contrast

On white

18.10
#2F0228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#2F0228 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F0228
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F0228#FFFFFF#000000##FFFFFF
##2F02281.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021229
Deuteranopia (green-blind)
#121827
Tritanopia (blue-blind)
#320514
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2f0228;
/* rgb */ color: rgb(47, 2, 40);
/* oklch */ color: oklch(21.2% 0.089 335.5);
Tailwind
colors: {
  custom: {
    50: '#6a4862',
    500: '#2f0228',
    950: '#000000',
  },
}
SCSS
$custom: #2f0228;
$custom-light: #6a4862;
$custom-dark: #000000;
JSON
{
  "hex": "#2f0228",
  "rgb": {
    "r": 47,
    "g": 2,
    "b": 40
  },
  "hsl": {
    "h": 309.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.21195,
    "c": 0.08857,
    "h": 335.5
  },
  "luminance": 0.00801
}

Semantic roles & 50–950 ramp

primary
#2F0228
secondary
#197427
accent
#FF4A29
background
#F6F4F5
surface
#EBE6EA
border
#C6C2C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #2F0228

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

Preview Lab → · Contrast checker → · Palette generator →

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