#2F243A#2F243A

#2F243A is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.3% C 0.042 H 306.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2F243A
RGBrgb(47, 36, 58)
HSLhsl(270, 23%, 18%)
HSVhsv(270, 38%, 23%)
CMYKcmyk(19%, 37.9%, 0%, 77.3%)
CIE-LABlab(16.36, 10.51, -12.24)
CIE-LCHlch(16.36, 16.13, 310.67°)
OKLaboklab(28.31% 0.0252 -0.0337)
OKLCHoklch(28.31% 0.042 306.8)
XYZxyz(2.5667, 2.1716, 4.2861)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F243A #2F3A24
analogous
#24243A #2F243A #3A243A
triadic
#2F243A #3A2F24 #243A2F
tetradic
#2F243A #3A2424 #2F3A24 #243A3A
square
#2F243A #3A2424 #2F3A24 #243A3A
split-complementary
#2F243A #3A3A24 #243A24
monochromatic
#0F0C13 #100D14 #2F243A #4E3B60 #6C5386

Accessibility & contrast

On white

14.64
#2F243A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F243A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F243A
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F243A#FFFFFF#000000##FFFFFF
##2F243A1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20283B
Deuteranopia (green-blind)
#222939
Tritanopia (blue-blind)
#2D272C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f243a;
/* rgb */ color: rgb(47, 36, 58);
/* oklch */ color: oklch(28.3% 0.042 306.8);
Tailwind
colors: {
  custom: {
    50: '#685e70',
    500: '#2f243a',
    950: '#000000',
  },
}
SCSS
$custom: #2f243a;
$custom-light: #685e70;
$custom-dark: #000000;
JSON
{
  "hex": "#2f243a",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 58
  },
  "hsl": {
    "h": 270,
    "s": 23.404,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28314,
    "c": 0.04206,
    "h": 306.8
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#2F243A
secondary
#5D6C4E
accent
#C06894
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#060407
muted
#7A797A

Preview Lab

Preview with #2F243A

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

Preview Lab → · Contrast checker → · Palette generator →

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