#2F116F#2F116F

#2F116F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.146 H 288.4°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#2F116F
RGBrgb(47, 17, 111)
HSLhsl(259, 73%, 25%)
HSVhsv(259, 85%, 44%)
CMYKcmyk(57.7%, 84.7%, 0%, 56.5%)
CIE-LABlab(16.27, 38.25, -48.18)
CIE-LCHlch(16.27, 61.52, 308.45°)
OKLaboklab(29.57% 0.046 -0.1386)
OKLCHoklch(29.57% 0.146 288.4)
XYZxyz(4.2411, 2.1527, 15.2279)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F116F #516F11
analogous
#11226F #2F116F #5E116F
triadic
#2F116F #6F2F11 #116F2F
tetradic
#2F116F #6F1122 #516F11 #116F5E
square
#2F116F #6F1122 #516F11 #116F5E
split-complementary
#2F116F #6F5E11 #226F11
monochromatic
#0B041B #19093A #2F116F #4519A4 #5C21D9

Accessibility & contrast

On white

14.68
#2F116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F116F
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F116F#FFFFFF#000000##FFFFFF
##2F116F1.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#142D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f116f;
/* rgb */ color: rgb(47, 17, 111);
/* oklch */ color: oklch(29.6% 0.146 288.4);
Tailwind
colors: {
  custom: {
    50: '#705499',
    500: '#2f116f',
    950: '#000000',
  },
}
SCSS
$custom: #2f116f;
$custom-light: #705499;
$custom-dark: #000000;
JSON
{
  "hex": "#2f116f",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 259.149,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29567,
    "c": 0.14608,
    "h": 288.4
  },
  "luminance": 0.02153
}

Semantic roles & 50–950 ramp

primary
#2F116F
secondary
#82A635
accent
#F038B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F116F

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

Preview Lab → · Contrast checker → · Palette generator →

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