#2F2140#2F2140

#2F2140 is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.0% C 0.058 H 303.7°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2F2140
RGBrgb(47, 33, 64)
HSLhsl(267, 32%, 19%)
HSVhsv(267, 48%, 25%)
CMYKcmyk(26.6%, 48.4%, 0%, 74.9%)
CIE-LABlab(15.81, 14.34, -17.29)
CIE-LCHlch(15.81, 22.46, 309.67°)
OKLaboklab(28% 0.0322 -0.0482)
OKLCHoklch(28% 0.058 303.7)
XYZxyz(2.6414, 2.0622, 5.1084)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2140 #324021
analogous
#212340 #2F2140 #3F2140
triadic
#2F2140 #402F21 #21402F
tetradic
#2F2140 #402123 #324021 #21403F
square
#2F2140 #402123 #324021 #21403F
split-complementary
#2F2140 #403F21 #234021
monochromatic
#0F0A14 #110C18 #2F2140 #4D3668 #6A4B91

Accessibility & contrast

On white

14.87
#2F2140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F2140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2140
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2140#FFFFFF#000000##FFFFFF
##2F21401.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192741
Deuteranopia (green-blind)
#1C273F
Tritanopia (blue-blind)
#2C262D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f2140;
/* rgb */ color: rgb(47, 33, 64);
/* oklch */ color: oklch(28.0% 0.058 303.7);
Tailwind
colors: {
  custom: {
    50: '#685c75',
    500: '#2f2140',
    950: '#000000',
  },
}
SCSS
$custom: #2f2140;
$custom-light: #685c75;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2140",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 267.097,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.05794,
    "h": 303.7
  },
  "luminance": 0.02062
}

Semantic roles & 50–950 ramp

primary
#2F2140
secondary
#607449
accent
#C86099
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060408
muted
#7A797B

Preview Lab

Preview with #2F2140

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

Preview Lab → · Contrast checker → · Palette generator →

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