#2F205C#2F205C

#2F205C is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.9% C 0.102 H 290.3°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#2F205C
RGBrgb(47, 32, 92)
HSLhsl(255, 48%, 24%)
HSVhsv(255, 65%, 36%)
CMYKcmyk(48.9%, 65.2%, 0%, 63.9%)
CIE-LABlab(17.51, 23.80, -33.65)
CIE-LCHlch(17.51, 41.22, 305.28°)
OKLaboklab(29.89% 0.0356 -0.0961)
OKLCHoklch(29.89% 0.102 290.3)
XYZxyz(3.6200, 2.4099, 10.3976)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F205C #4D5C20
analogous
#202F5C #2F205C #4D205C
triadic
#2F205C #5C2F20 #205C2F
tetradic
#2F205C #5C202F #4D5C20 #205C4D
square
#2F205C #5C202F #4D5C20 #205C4D
split-complementary
#2F205C #5C4D20 #2F5C20
monochromatic
#0C0817 #18102F #2F205C #463089 #5D40B7

Accessibility & contrast

On white

14.17
#2F205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F205C
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F205C#FFFFFF#000000##FFFFFF
##2F205C1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#212E3A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f205c;
/* rgb */ color: rgb(47, 32, 92);
/* oklch */ color: oklch(29.9% 0.102 290.3);
Tailwind
colors: {
  custom: {
    50: '#6c5c8b',
    500: '#2f205c',
    950: '#000000',
  },
}
SCSS
$custom: #2f205c;
$custom-light: #6c5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f205c",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 255,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29891,
    "c": 0.10249,
    "h": 290.3
  },
  "luminance": 0.0241
}

Semantic roles & 50–950 ramp

primary
#2F205C
secondary
#7E9047
accent
#D850B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F205C

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

Preview Lab → · Contrast checker → · Palette generator →

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