#2F2249#2F2249

#2F2249 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.8% C 0.070 H 297.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2F2249
RGBrgb(47, 34, 73)
HSLhsl(260, 36%, 21%)
HSVhsv(260, 53%, 29%)
CMYKcmyk(35.6%, 53.4%, 0%, 71.4%)
CIE-LABlab(16.65, 16.35, -22.18)
CIE-LCHlch(16.65, 27.56, 306.39°)
OKLaboklab(28.81% 0.0321 -0.0624)
OKLCHoklch(28.81% 0.07 297.2)
XYZxyz(2.9466, 2.2294, 6.5771)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2249 #3C4922
analogous
#222849 #2F2249 #422249
triadic
#2F2249 #492F22 #22492F
tetradic
#2F2249 #492228 #3C4922 #224942
square
#2F2249 #492228 #3C4922 #224942
split-complementary
#2F2249 #494222 #284922
monochromatic
#0D0A15 #140F1F #2F2249 #4A3573 #65499D

Accessibility & contrast

On white

14.52
#2F2249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F2249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2249
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2249#FFFFFF#000000##FFFFFF
##2F22491.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15294A
Deuteranopia (green-blind)
#182948
Tritanopia (blue-blind)
#292932
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f2249;
/* rgb */ color: rgb(47, 34, 73);
/* oklch */ color: oklch(28.8% 0.070 297.2);
Tailwind
colors: {
  custom: {
    50: '#695d7c',
    500: '#2f2249',
    950: '#000000',
  },
}
SCSS
$custom: #2f2249;
$custom-light: #695d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2249",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 73
  },
  "hsl": {
    "h": 260,
    "s": 36.449,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28812,
    "c": 0.07019,
    "h": 297.2
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#2F2249
secondary
#6C7D4A
accent
#CC5BA7
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F2249

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

Preview Lab → · Contrast checker → · Palette generator →

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