#2F123C#2F123C

#2F123C is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.9% C 0.082 H 313.9°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2F123C
RGBrgb(47, 18, 60)
HSLhsl(281, 54%, 15%)
HSVhsv(281, 70%, 24%)
CMYKcmyk(21.7%, 70%, 0%, 76.5%)
CIE-LABlab(11.71, 23.14, -20.96)
CIE-LCHlch(11.71, 31.22, 317.82°)
OKLaboklab(24.88% 0.0566 -0.0588)
OKLCHoklch(24.88% 0.082 313.9)
XYZxyz(2.2041, 1.3633, 4.4211)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F123C #1F3C12
analogous
#1A123C #2F123C #3C1234
triadic
#2F123C #3C2F12 #123C2F
tetradic
#2F123C #3C1A12 #1F3C12 #12343C
square
#2F123C #3C1A12 #1F3C12 #12343C
split-complementary
#2F123C #343C12 #123C1A
monochromatic
#120718 #120718 #2F123C #54206B #792E9A

Accessibility & contrast

On white

16.50
#2F123C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2F123C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F123C
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F123C#FFFFFF#000000##FFFFFF
##2F123C1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3D
Deuteranopia (green-blind)
#10203B
Tritanopia (blue-blind)
#2E1A24
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f123c;
/* rgb */ color: rgb(47, 18, 60);
/* oklch */ color: oklch(24.9% 0.082 313.9);
Tailwind
colors: {
  custom: {
    50: '#695272',
    500: '#2f123c',
    950: '#000000',
  },
}
SCSS
$custom: #2f123c;
$custom-light: #695272;
$custom-dark: #000000;
JSON
{
  "hex": "#2f123c",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 60
  },
  "hsl": {
    "h": 281.429,
    "s": 53.846,
    "l": 15.294
  },
  "oklch": {
    "l": 0.24881,
    "c": 0.08166,
    "h": 313.9
  },
  "luminance": 0.01363
}

Semantic roles & 50–950 ramp

primary
#2F123C
secondary
#497535
accent
#DD4B78
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F123C

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

Preview Lab → · Contrast checker → · Palette generator →

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