#2F224C#2F224C

#2F224C is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.0% C 0.075 H 295.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#2F224C
RGBrgb(47, 34, 76)
HSLhsl(259, 38%, 22%)
HSVhsv(259, 55%, 30%)
CMYKcmyk(38.2%, 55.3%, 0%, 70.2%)
CIE-LABlab(16.85, 17.29, -23.92)
CIE-LCHlch(16.85, 29.51, 305.85°)
OKLaboklab(29.02% 0.0324 -0.0675)
OKLCHoklch(29.02% 0.075 295.6)
XYZxyz(3.0485, 2.2701, 7.1136)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F224C #3F4C22
analogous
#222A4C #2F224C #44224C
triadic
#2F224C #4C2F22 #224C2F
tetradic
#2F224C #4C222A #3F4C22 #224C44
square
#2F224C #4C222A #3F4C22 #224C44
split-complementary
#2F224C #4C4422 #2A4C22
monochromatic
#0D0915 #150F22 #2F224C #493576 #6348A1

Accessibility & contrast

On white

14.44
#2F224C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F224C
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F224C#FFFFFF#000000##FFFFFF
##2F224C1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#15294B
Tritanopia (blue-blind)
#282A33
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f224c;
/* rgb */ color: rgb(47, 34, 76);
/* oklch */ color: oklch(29.0% 0.075 295.6);
Tailwind
colors: {
  custom: {
    50: '#695d7e',
    500: '#2f224c',
    950: '#000000',
  },
}
SCSS
$custom: #2f224c;
$custom-light: #695d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f224c",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 76
  },
  "hsl": {
    "h": 258.571,
    "s": 38.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29024,
    "c": 0.07491,
    "h": 295.6
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#2F224C
secondary
#6F804A
accent
#CE5AAA
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F224C

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

Preview Lab → · Contrast checker → · Palette generator →

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