#2F2139#2F2139

#2F2139 is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.6% C 0.047 H 310.3°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2F2139
RGBrgb(47, 33, 57)
HSLhsl(275, 27%, 18%)
HSVhsv(275, 42%, 22%)
CMYKcmyk(17.5%, 42.1%, 0%, 77.6%)
CIE-LABlab(15.42, 12.35, -12.99)
CIE-LCHlch(15.42, 17.93, 313.55°)
OKLaboklab(27.58% 0.0304 -0.0358)
OKLCHoklch(27.58% 0.047 310.3)
XYZxyz(2.4545, 1.9875, 4.1244)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2139 #2B3921
analogous
#232139 #2F2139 #392137
triadic
#2F2139 #392F21 #21392F
tetradic
#2F2139 #392321 #2B3921 #213739
square
#2F2139 #392321 #2B3921 #213739
split-complementary
#2F2139 #373921 #213923
monochromatic
#100B13 #100B13 #2F2139 #4F3760 #6F4E87

Accessibility & contrast

On white

15.03
#2F2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2139
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2139#FFFFFF#000000##FFFFFF
##2F21391.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D263A
Deuteranopia (green-blind)
#202738
Tritanopia (blue-blind)
#2E242A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f2139;
/* rgb */ color: rgb(47, 33, 57);
/* oklch */ color: oklch(27.6% 0.047 310.3);
Tailwind
colors: {
  custom: {
    50: '#685c6f',
    500: '#2f2139',
    950: '#000000',
  },
}
SCSS
$custom: #2f2139;
$custom-light: #685c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2139",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 275,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2758,
    "c": 0.04698,
    "h": 310.3
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#2F2139
secondary
#586C4A
accent
#C3658C
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2F2139

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

Preview Lab → · Contrast checker → · Palette generator →

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