#2F113F#2F113F

#2F113F is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.087 H 311.8°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#2F113F
RGBrgb(47, 17, 63)
HSLhsl(279, 58%, 16%)
HSVhsv(279, 73%, 25%)
CMYKcmyk(25.4%, 73%, 0%, 75.3%)
CIE-LABlab(11.72, 24.51, -23.09)
CIE-LCHlch(11.72, 33.67, 316.72°)
OKLaboklab(24.96% 0.0581 -0.065)
OKLCHoklch(24.96% 0.087 311.8)
XYZxyz(2.2698, 1.3642, 4.8454)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F113F #213F11
analogous
#18113F #2F113F #3F1138
triadic
#2F113F #3F2F11 #113F2F
tetradic
#2F113F #3F1811 #213F11 #11383F
square
#2F113F #3F1811 #213F11 #11383F
split-complementary
#2F113F #383F11 #113F18
monochromatic
#120718 #120718 #2F113F #531E6F #772B9F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F113F#FFFFFF#000000##FFFFFF
##2F113F1.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)
#001D40
Deuteranopia (green-blind)
#0D203E
Tritanopia (blue-blind)
#2D1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2f113f;
/* rgb */ color: rgb(47, 17, 63);
/* oklch */ color: oklch(25.0% 0.087 311.8);
Tailwind
colors: {
  custom: {
    50: '#695174',
    500: '#2f113f',
    950: '#000000',
  },
}
SCSS
$custom: #2f113f;
$custom-light: #695174;
$custom-dark: #000000;
JSON
{
  "hex": "#2f113f",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 279.13,
    "s": 57.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.24957,
    "c": 0.08717,
    "h": 311.8
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#2F113F
secondary
#4B7833
accent
#E1477D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F113F

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

Preview Lab → · Contrast checker → · Palette generator →

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