#2F233A#2F233A

#2F233A is a dark, muted violet. Relative luminance 0.021; OKLCH L 28.1% C 0.044 H 307.7°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#2F233A
RGBrgb(47, 35, 58)
HSLhsl(271, 25%, 18%)
HSVhsv(271, 40%, 23%)
CMYKcmyk(19%, 39.7%, 0%, 77.3%)
CIE-LABlab(16.06, 11.22, -12.70)
CIE-LCHlch(16.06, 16.95, 311.46°)
OKLaboklab(28.09% 0.027 -0.035)
OKLCHoklch(28.09% 0.044 307.7)
XYZxyz(2.5369, 2.1119, 4.2762)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F233A #2E3A23
analogous
#23233A #2F233A #3A2339
triadic
#2F233A #3A2F23 #233A2F
tetradic
#2F233A #3A2323 #2E3A23 #23393A
square
#2F233A #3A2323 #2E3A23 #23393A
split-complementary
#2F233A #393A23 #233A23
monochromatic
#0F0C13 #100C14 #2F233A #4E3A60 #6D5186

Accessibility & contrast

On white

14.76
#2F233A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F233A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F233A
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F233A#FFFFFF#000000##FFFFFF
##2F233A1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F273B
Deuteranopia (green-blind)
#212839
Tritanopia (blue-blind)
#2E262B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f233a;
/* rgb */ color: rgb(47, 35, 58);
/* oklch */ color: oklch(28.1% 0.044 307.7);
Tailwind
colors: {
  custom: {
    50: '#685e70',
    500: '#2f233a',
    950: '#000000',
  },
}
SCSS
$custom: #2f233a;
$custom-light: #685e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f233a",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 58
  },
  "hsl": {
    "h": 271.304,
    "s": 24.731,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28086,
    "c": 0.04422,
    "h": 307.7
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#2F233A
secondary
#5C6C4C
accent
#C16792
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2F233A

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

Preview Lab → · Contrast checker → · Palette generator →

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