#2F214C#2F214C

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

Color values

HEX#2F214C
RGBrgb(47, 33, 76)
HSLhsl(260, 39%, 21%)
HSVhsv(260, 57%, 30%)
CMYKcmyk(38.2%, 56.6%, 0%, 70.2%)
CIE-LABlab(16.57, 17.98, -24.36)
CIE-LCHlch(16.57, 30.27, 306.43°)
OKLaboklab(28.82% 0.034 -0.0688)
OKLCHoklch(28.82% 0.077 296.3)
XYZxyz(3.0203, 2.2138, 7.1043)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F214C #3E4C21
analogous
#21294C #2F214C #45214C
triadic
#2F214C #4C2F21 #214C2F
tetradic
#2F214C #4C2129 #3E4C21 #214C45
square
#2F214C #4C2129 #3E4C21 #214C45
split-complementary
#2F214C #4C4521 #294C21
monochromatic
#0D0915 #150E21 #2F214C #493477 #6446A1

Accessibility & contrast

On white

14.56
#2F214C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F214C
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F214C#FFFFFF#000000##FFFFFF
##2F214C1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294D
Deuteranopia (green-blind)
#14284B
Tritanopia (blue-blind)
#282933
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f214c;
/* rgb */ color: rgb(47, 33, 76);
/* oklch */ color: oklch(28.8% 0.077 296.3);
Tailwind
colors: {
  custom: {
    50: '#695c7e',
    500: '#2f214c',
    950: '#000000',
  },
}
SCSS
$custom: #2f214c;
$custom-light: #695c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f214c",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 76
  },
  "hsl": {
    "h": 259.535,
    "s": 39.45,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28819,
    "c": 0.07674,
    "h": 296.3
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2F214C
secondary
#6E8049
accent
#CF58A9
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F214C

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

Preview Lab → · Contrast checker → · Palette generator →

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