#2F293F#2F293F

#2F293F is a dark, muted violet. Relative luminance 0.025; OKLCH L 29.8% C 0.040 H 296.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2F293F
RGBrgb(47, 41, 63)
HSLhsl(256, 21%, 20%)
HSVhsv(256, 35%, 25%)
CMYKcmyk(25.4%, 34.9%, 0%, 75.3%)
CIE-LABlab(18.14, 8.41, -12.96)
CIE-LCHlch(18.14, 15.45, 302.96°)
OKLaboklab(29.76% 0.0178 -0.0358)
OKLCHoklch(29.76% 0.04 296.4)
XYZxyz(2.8622, 2.5491, 5.0429)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F293F #393F29
analogous
#292E3F #2F293F #3A293F
triadic
#2F293F #3F2F29 #293F2F
tetradic
#2F293F #3F292E #393F29 #293F3A
square
#2F293F #3F292E #393F29 #293F3A
split-complementary
#2F293F #3F3A29 #2E3F29
monochromatic
#0E0C13 #13111A #2F293F #4B4164 #665989

Accessibility & contrast

On white

13.91
#2F293F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F293F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F293F
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F293F#FFFFFF#000000##FFFFFF
##2F293F1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242C40
Deuteranopia (green-blind)
#252C3E
Tritanopia (blue-blind)
#2C2D31
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f293f;
/* rgb */ color: rgb(47, 41, 63);
/* oklch */ color: oklch(29.8% 0.040 296.4);
Tailwind
colors: {
  custom: {
    50: '#686274',
    500: '#2f293f',
    950: '#000000',
  },
}
SCSS
$custom: #2f293f;
$custom-light: #686274;
$custom-dark: #000000;
JSON
{
  "hex": "#2f293f",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 63
  },
  "hsl": {
    "h": 256.364,
    "s": 21.154,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29756,
    "c": 0.03996,
    "h": 296.4
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#2F293F
secondary
#687053
accent
#BE6AA7
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#060508
muted
#7A797B

Preview Lab

Preview with #2F293F

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

Preview Lab → · Contrast checker → · Palette generator →

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