#2F123B#2F123B

#2F123B is a very dark, moderate purple. Relative luminance 0.014; OKLCH L 24.8% C 0.080 H 314.8°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#2F123B
RGBrgb(47, 18, 59)
HSLhsl(282, 53%, 15%)
HSVhsv(282, 69%, 23%)
CMYKcmyk(20.3%, 69.5%, 0%, 76.9%)
CIE-LABlab(11.64, 22.88, -20.36)
CIE-LCHlch(11.64, 30.63, 318.33°)
OKLaboklab(24.81% 0.0566 -0.0571)
OKLCHoklch(24.81% 0.08 314.8)
XYZxyz(2.1779, 1.3528, 4.2832)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F123B #1E3B12
analogous
#1A123B #2F123B #3B1232
triadic
#2F123B #3B2F12 #123B2F
tetradic
#2F123B #3B1A12 #1E3B12 #12323B
square
#2F123B #3B1A12 #1E3B12 #12323B
split-complementary
#2F123B #323B12 #123B1A
monochromatic
#130717 #130717 #2F123B #54206A #7A2F99

Accessibility & contrast

On white

16.53
#2F123B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F123B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F123B#FFFFFF#000000##FFFFFF
##2F123B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3C
Deuteranopia (green-blind)
#11203A
Tritanopia (blue-blind)
#2E1924
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f123b;
/* rgb */ color: rgb(47, 18, 59);
/* oklch */ color: oklch(24.8% 0.080 314.8);
Tailwind
colors: {
  custom: {
    50: '#695271',
    500: '#2f123b',
    950: '#000000',
  },
}
SCSS
$custom: #2f123b;
$custom-light: #695271;
$custom-dark: #000000;
JSON
{
  "hex": "#2f123b",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 59
  },
  "hsl": {
    "h": 282.439,
    "s": 53.247,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24806,
    "c": 0.0804,
    "h": 314.8
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#2F123B
secondary
#477435
accent
#DD4B76
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F123B

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

Preview Lab → · Contrast checker → · Palette generator →

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