#2F224D#2F224D

#2F224D is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.1% C 0.076 H 295.2°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#2F224D
RGBrgb(47, 34, 77)
HSLhsl(258, 39%, 22%)
HSVhsv(258, 56%, 30%)
CMYKcmyk(39%, 55.8%, 0%, 69.8%)
CIE-LABlab(16.91, 17.60, -24.50)
CIE-LCHlch(16.91, 30.16, 305.70°)
OKLaboklab(29.1% 0.0325 -0.0692)
OKLCHoklch(29.1% 0.076 295.2)
XYZxyz(3.0835, 2.2842, 7.2982)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F224D #404D22
analogous
#222B4D #2F224D #45224D
triadic
#2F224D #4D2F22 #224D2F
tetradic
#2F224D #4D222B #404D22 #224D45
square
#2F224D #4D222B #404D22 #224D45
split-complementary
#2F224D #4D4522 #2B4D22
monochromatic
#0D0915 #150F23 #2F224D #493577 #6347A2

Accessibility & contrast

On white

14.42
#2F224D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F224D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F224D
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F224D#FFFFFF#000000##FFFFFF
##2F224D1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4F
Deuteranopia (green-blind)
#15294C
Tritanopia (blue-blind)
#282A34
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f224d;
/* rgb */ color: rgb(47, 34, 77);
/* oklch */ color: oklch(29.1% 0.076 295.2);
Tailwind
colors: {
  custom: {
    50: '#695d7f',
    500: '#2f224d',
    950: '#000000',
  },
}
SCSS
$custom: #2f224d;
$custom-light: #695d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f224d",
  "rgb": {
    "r": 47,
    "g": 34,
    "b": 77
  },
  "hsl": {
    "h": 258.14,
    "s": 38.739,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29096,
    "c": 0.07648,
    "h": 295.2
  },
  "luminance": 0.02284
}

Semantic roles & 50–950 ramp

primary
#2F224D
secondary
#70814A
accent
#CF59AB
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #2F224D

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

Preview Lab → · Contrast checker → · Palette generator →

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