#2F2255#2F2255

#2F2255 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.089 H 291.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2255
RGBrgb(47, 34, 85)
HSLhsl(255, 43%, 23%)
HSVhsv(255, 60%, 33%)
CMYKcmyk(44.7%, 60%, 0%, 66.7%)
CIE-LABlab(17.48, 20.17, -29.00)
CIE-LCHlch(17.48, 35.33, 304.82°)
OKLaboklab(29.7% 0.033 -0.0824)
OKLCHoklch(29.7% 0.089 291.8)
XYZxyz(3.3836, 2.4042, 8.8783)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2255 #485522
analogous
#222E55 #2F2255 #482255
triadic
#2F2255 #552F22 #22552F
tetradic
#2F2255 #55222E #485522 #225548
square
#2F2255 #55222E #485522 #225548
split-complementary
#2F2255 #554822 #2E5522
monochromatic
#0C0916 #171129 #2F2255 #473381 #5F45AC

Accessibility & contrast

On white

14.18
#2F2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2255
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2255#FFFFFF#000000##FFFFFF
##2F22551.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082C57
Deuteranopia (green-blind)
#0B2A54
Tritanopia (blue-blind)
#252D37
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f2255;
/* rgb */ color: rgb(47, 34, 85);
/* oklch */ color: oklch(29.7% 0.089 291.8);
Tailwind
colors: {
  custom: {
    50: '#6a5d85',
    500: '#2f2255',
    950: '#000000',
  },
}
SCSS
$custom: #2f2255;
$custom-light: #6a5d85;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2255",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 255.294,
    "s": 42.857,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29699,
    "c": 0.08881,
    "h": 291.8
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#2F2255
secondary
#79894A
accent
#D355B3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F2255

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

Preview Lab → · Contrast checker → · Palette generator →

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