#2F113A#2F113A

#2F113A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.081 H 315.9°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#2F113A
RGBrgb(47, 17, 58)
HSLhsl(284, 55%, 15%)
HSVhsv(284, 71%, 23%)
CMYKcmyk(19%, 70.7%, 0%, 77.3%)
CIE-LABlab(11.35, 23.21, -20.11)
CIE-LCHlch(11.35, 30.71, 319.10°)
OKLaboklab(24.57% 0.0582 -0.0563)
OKLCHoklch(24.57% 0.081 315.9)
XYZxyz(2.1363, 1.3108, 4.1426)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F113A #1C3A11
analogous
#1A113A #2F113A #3A1131
triadic
#2F113A #3A2F11 #113A2F
tetradic
#2F113A #3A1A11 #1C3A11 #11313A
square
#2F113A #3A1A11 #1C3A11 #11313A
split-complementary
#2F113A #313A11 #113A1A
monochromatic
#130718 #130718 #2F113A #551F69 #7C2D99

Accessibility & contrast

On white

16.64
#2F113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#2F113A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F113A
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F113A#FFFFFF#000000##FFFFFF
##2F113A1.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3B
Deuteranopia (green-blind)
#111F39
Tritanopia (blue-blind)
#2E1823
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f113a;
/* rgb */ color: rgb(47, 17, 58);
/* oklch */ color: oklch(24.6% 0.081 315.9);
Tailwind
colors: {
  custom: {
    50: '#695170',
    500: '#2f113a',
    950: '#000000',
  },
}
SCSS
$custom: #2f113a;
$custom-light: #695170;
$custom-dark: #000000;
JSON
{
  "hex": "#2f113a",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 283.902,
    "s": 54.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24574,
    "c": 0.08095,
    "h": 315.9
  },
  "luminance": 0.01311
}

Semantic roles & 50–950 ramp

primary
#2F113A
secondary
#457333
accent
#DE4A72
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F113A

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

Preview Lab → · Contrast checker → · Palette generator →

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