#2F2540#2F2540

#2F2540 is a dark, muted violet. Relative luminance 0.023; OKLCH L 28.9% C 0.050 H 300.4°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2F2540
RGBrgb(47, 37, 64)
HSLhsl(262, 27%, 20%)
HSVhsv(262, 42%, 25%)
CMYKcmyk(26.6%, 42.2%, 0%, 74.9%)
CIE-LABlab(16.98, 11.52, -15.46)
CIE-LCHlch(16.98, 19.28, 306.70°)
OKLaboklab(28.89% 0.0252 -0.0429)
OKLCHoklch(28.89% 0.05 300.4)
XYZxyz(2.7591, 2.2976, 5.1476)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2540 #364025
analogous
#252940 #2F2540 #3D2540
triadic
#2F2540 #402F25 #25402F
tetradic
#2F2540 #402529 #364025 #25403D
square
#2F2540 #402529 #364025 #25403D
split-complementary
#2F2540 #403D25 #294025
monochromatic
#0E0B13 #130F19 #2F2540 #4B3B67 #68528E

Accessibility & contrast

On white

14.39
#2F2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F2540
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2540#FFFFFF#000000##FFFFFF
##2F25401.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2A41
Deuteranopia (green-blind)
#202A3F
Tritanopia (blue-blind)
#2C292F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f2540;
/* rgb */ color: rgb(47, 37, 64);
/* oklch */ color: oklch(28.9% 0.050 300.4);
Tailwind
colors: {
  custom: {
    50: '#685f75',
    500: '#2f2540',
    950: '#000000',
  },
}
SCSS
$custom: #2f2540;
$custom-light: #685f75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2540",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 262.222,
    "s": 26.733,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28885,
    "c": 0.04975,
    "h": 300.4
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2F2540
secondary
#65724E
accent
#C365A0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2F2540

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

Preview Lab → · Contrast checker → · Palette generator →

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