#2F123A#2F123A

#2F123A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.079 H 315.7°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#2F123A
RGBrgb(47, 18, 58)
HSLhsl(284, 53%, 15%)
HSVhsv(284, 69%, 23%)
CMYKcmyk(19%, 69%, 0%, 77.3%)
CIE-LABlab(11.57, 22.62, -19.76)
CIE-LCHlch(11.57, 30.04, 318.86°)
OKLaboklab(24.73% 0.0566 -0.0553)
OKLCHoklch(24.73% 0.079 315.7)
XYZxyz(2.1522, 1.3425, 4.1479)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F123A #1D3A12
analogous
#1B123A #2F123A #3A1231
triadic
#2F123A #3A2F12 #123A2F
tetradic
#2F123A #3A1B12 #1D3A12 #12313A
square
#2F123A #3A1B12 #1D3A12 #12313A
split-complementary
#2F123A #313A12 #123A1B
monochromatic
#130717 #130717 #2F123A #552069 #7B2F97

Accessibility & contrast

On white

16.56
#2F123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F123A
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F123A#FFFFFF#000000##FFFFFF
##2F123A1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071D3B
Deuteranopia (green-blind)
#121F39
Tritanopia (blue-blind)
#2E1923
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f123a;
/* rgb */ color: rgb(47, 18, 58);
/* oklch */ color: oklch(24.7% 0.079 315.7);
Tailwind
colors: {
  custom: {
    50: '#695270',
    500: '#2f123a',
    950: '#000000',
  },
}
SCSS
$custom: #2f123a;
$custom-light: #695270;
$custom-dark: #000000;
JSON
{
  "hex": "#2f123a",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 283.5,
    "s": 52.632,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24733,
    "c": 0.07914,
    "h": 315.7
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#2F123A
secondary
#467335
accent
#DC4C73
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F123A

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

Preview Lab → · Contrast checker → · Palette generator →

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