#2F205A#2F205A

#2F205A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.7% C 0.100 H 291.0°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#2F205A
RGBrgb(47, 32, 90)
HSLhsl(256, 48%, 24%)
HSVhsv(256, 64%, 35%)
CMYKcmyk(47.8%, 64.4%, 0%, 64.7%)
CIE-LABlab(17.35, 23.15, -32.57)
CIE-LCHlch(17.35, 39.96, 305.40°)
OKLaboklab(29.72% 0.0357 -0.0929)
OKLCHoklch(29.72% 0.1 291)
XYZxyz(3.5338, 2.3754, 9.9432)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F205A #4B5A20
analogous
#202E5A #2F205A #4C205A
triadic
#2F205A #5A2F20 #205A2F
tetradic
#2F205A #5A202E #4B5A20 #205A4C
square
#2F205A #5A202E #4B5A20 #205A4C
split-complementary
#2F205A #5A4C20 #2E5A20
monochromatic
#0C0817 #17102D #2F205A #473087 #5E40B4

Accessibility & contrast

On white

14.24
#2F205A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F205A
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F205A#FFFFFF#000000##FFFFFF
##2F205A1.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#222D39
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f205a;
/* rgb */ color: rgb(47, 32, 90);
/* oklch */ color: oklch(29.7% 0.100 291.0);
Tailwind
colors: {
  custom: {
    50: '#6b5c89',
    500: '#2f205a',
    950: '#000000',
  },
}
SCSS
$custom: #2f205a;
$custom-light: #6b5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#2f205a",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 90
  },
  "hsl": {
    "h": 255.517,
    "s": 47.541,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29723,
    "c": 0.09956,
    "h": 291
  },
  "luminance": 0.02376
}

Semantic roles & 50–950 ramp

primary
#2F205A
secondary
#7C8E47
accent
#D751B4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #2F205A

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

Preview Lab → · Contrast checker → · Palette generator →

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