#2F2240#2F2240

#2F2240 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.2% C 0.056 H 303.0°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#2F2240
RGBrgb(47, 34, 64)
HSLhsl(266, 31%, 19%)
HSVhsv(266, 47%, 25%)
CMYKcmyk(26.6%, 46.9%, 0%, 74.9%)
CIE-LABlab(16.10, 13.63, -16.84)
CIE-LCHlch(16.10, 21.66, 309.00°)
OKLaboklab(28.22% 0.0304 -0.0469)
OKLCHoklch(28.22% 0.056 303)
XYZxyz(2.6695, 2.1186, 5.1178)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2240 #334022
analogous
#222440 #2F2240 #3E2240
triadic
#2F2240 #402F22 #22402F
tetradic
#2F2240 #402224 #334022 #22403E
square
#2F2240 #402224 #334022 #22403E
split-complementary
#2F2240 #403E22 #244022
monochromatic
#0F0B14 #120D18 #2F2240 #4C3768 #6A4C90

Accessibility & contrast

On white

14.75
#2F2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2240
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2240#FFFFFF#000000##FFFFFF
##2F22401.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2841
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#2C272D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f2240;
/* rgb */ color: rgb(47, 34, 64);
/* oklch */ color: oklch(28.2% 0.056 303.0);
Tailwind
colors: {
  custom: {
    50: '#685d75',
    500: '#2f2240',
    950: '#000000',
  },
}
SCSS
$custom: #2f2240;
$custom-light: #685d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2240",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 266,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28218,
    "c": 0.0559,
    "h": 303
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#2F2240
secondary
#62734B
accent
#C7619B
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2F2240

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

Preview Lab → · Contrast checker → · Palette generator →

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