#2F113B#2F113B

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

Color values

HEX#2F113B
RGBrgb(47, 17, 59)
HSLhsl(283, 55%, 15%)
HSVhsv(283, 71%, 23%)
CMYKcmyk(20.3%, 71.2%, 0%, 76.9%)
CIE-LABlab(11.42, 23.47, -20.71)
CIE-LCHlch(11.42, 31.30, 318.57°)
OKLaboklab(24.65% 0.0582 -0.0581)
OKLCHoklch(24.65% 0.082 315)
XYZxyz(2.1620, 1.3211, 4.2779)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F113B #1D3B11
analogous
#1A113B #2F113B #3B1132
triadic
#2F113B #3B2F11 #113B2F
tetradic
#2F113B #3B1A11 #1D3B11 #11323B
square
#2F113B #3B1A11 #1D3B11 #11323B
split-complementary
#2F113B #323B11 #113B1A
monochromatic
#130718 #130718 #2F113B #551F6B #7B2C9A

Accessibility & contrast

On white

16.61
#2F113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F113B
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F113B#FFFFFF#000000##FFFFFF
##2F113B1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041D3C
Deuteranopia (green-blind)
#101F3A
Tritanopia (blue-blind)
#2E1924
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2f113b;
/* rgb */ color: rgb(47, 17, 59);
/* oklch */ color: oklch(24.6% 0.082 315.0);
Tailwind
colors: {
  custom: {
    50: '#695171',
    500: '#2f113b',
    950: '#000000',
  },
}
SCSS
$custom: #2f113b;
$custom-light: #695171;
$custom-dark: #000000;
JSON
{
  "hex": "#2f113b",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 282.857,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24648,
    "c": 0.08219,
    "h": 315
  },
  "luminance": 0.01321
}

Semantic roles & 50–950 ramp

primary
#2F113B
secondary
#467433
accent
#DF4974
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F113B

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

Preview Lab → · Contrast checker → · Palette generator →

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