#2F214A#2F214A

#2F214A is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.7% C 0.074 H 297.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#2F214A
RGBrgb(47, 33, 74)
HSLhsl(260, 38%, 21%)
HSVhsv(260, 55%, 29%)
CMYKcmyk(36.5%, 55.4%, 0%, 71%)
CIE-LABlab(16.44, 17.35, -23.21)
CIE-LCHlch(16.44, 28.98, 306.79°)
OKLaboklab(28.68% 0.0338 -0.0654)
OKLCHoklch(28.68% 0.074 297.3)
XYZxyz(2.9519, 2.1864, 6.7437)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F214A #3C4A21
analogous
#21274A #2F214A #43214A
triadic
#2F214A #4A2F21 #214A2F
tetradic
#2F214A #4A2127 #3C4A21 #214A43
square
#2F214A #4A2127 #3C4A21 #214A43
split-complementary
#2F214A #4A4321 #274A21
monochromatic
#0D0915 #140E20 #2F214A #4A3474 #65479F

Accessibility & contrast

On white

14.61
#2F214A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2F214A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F214A
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F214A#FFFFFF#000000##FFFFFF
##2F214A1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294B
Deuteranopia (green-blind)
#162849
Tritanopia (blue-blind)
#292932
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f214a;
/* rgb */ color: rgb(47, 33, 74);
/* oklch */ color: oklch(28.7% 0.074 297.3);
Tailwind
colors: {
  custom: {
    50: '#695c7d',
    500: '#2f214a',
    950: '#000000',
  },
}
SCSS
$custom: #2f214a;
$custom-light: #695c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f214a",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 74
  },
  "hsl": {
    "h": 260.488,
    "s": 38.318,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28675,
    "c": 0.07364,
    "h": 297.3
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#2F214A
secondary
#6C7E49
accent
#CE5AA6
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060409
muted
#7A797B

Preview Lab

Preview with #2F214A

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

Preview Lab → · Contrast checker → · Palette generator →

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