#2F205B#2F205B

#2F205B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.101 H 290.7°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#2F205B
RGBrgb(47, 32, 91)
HSLhsl(255, 48%, 24%)
HSVhsv(255, 65%, 36%)
CMYKcmyk(48.4%, 64.8%, 0%, 64.3%)
CIE-LABlab(17.43, 23.47, -33.11)
CIE-LCHlch(17.43, 40.59, 305.34°)
OKLaboklab(29.81% 0.0357 -0.0945)
OKLCHoklch(29.81% 0.101 290.7)
XYZxyz(3.5766, 2.3926, 10.1689)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F205B #4C5B20
analogous
#202F5B #2F205B #4D205B
triadic
#2F205B #5B2F20 #205B2F
tetradic
#2F205B #5B202F #4C5B20 #205B4D
square
#2F205B #5B202F #4C5B20 #205B4D
split-complementary
#2F205B #5B4D20 #2F5B20
monochromatic
#0C0817 #18102E #2F205B #463088 #5E40B6

Accessibility & contrast

On white

14.20
#2F205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F205B
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F205B#FFFFFF#000000##FFFFFF
##2F205B1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#00295A
Tritanopia (blue-blind)
#222D3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f205b;
/* rgb */ color: rgb(47, 32, 91);
/* oklch */ color: oklch(29.8% 0.101 290.7);
Tailwind
colors: {
  custom: {
    50: '#6c5c8a',
    500: '#2f205b',
    950: '#000000',
  },
}
SCSS
$custom: #2f205b;
$custom-light: #6c5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#2f205b",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 255.254,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29807,
    "c": 0.10102,
    "h": 290.7
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#2F205B
secondary
#7D8F47
accent
#D850B5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F205B

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

Preview Lab → · Contrast checker → · Palette generator →

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