#2F116A#2F116A

#2F116A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.140 H 289.9°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2F116A
RGBrgb(47, 17, 106)
HSLhsl(260, 72%, 24%)
HSVhsv(260, 84%, 42%)
CMYKcmyk(55.7%, 84%, 0%, 58.4%)
CIE-LABlab(15.73, 36.79, -45.81)
CIE-LCHlch(15.73, 58.75, 308.77°)
OKLaboklab(29.03% 0.0478 -0.1317)
OKLCHoklch(29.03% 0.14 289.9)
XYZxyz(3.9735, 2.0457, 13.8184)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F116A #4C6A11
analogous
#111F6A #2F116A #5C116A
triadic
#2F116A #6A2F11 #116A2F
tetradic
#2F116A #6A111F #4C6A11 #116A5C
square
#2F116A #6A111F #4C6A11 #116A5C
split-complementary
#2F116A #6A5C11 #1F6A11
monochromatic
#0C041A #180935 #2F116A #46199F #5E22D3

Accessibility & contrast

On white

14.90
#2F116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F116A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F116A#FFFFFF#000000##FFFFFF
##2F116A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002568
Tritanopia (blue-blind)
#192B3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f116a;
/* rgb */ color: rgb(47, 17, 106);
/* oklch */ color: oklch(29.0% 0.140 289.9);
Tailwind
colors: {
  custom: {
    50: '#6f5496',
    500: '#2f116a',
    950: '#000000',
  },
}
SCSS
$custom: #2f116a;
$custom-light: #6f5496;
$custom-dark: #000000;
JSON
{
  "hex": "#2f116a",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 260.225,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29027,
    "c": 0.14012,
    "h": 289.9
  },
  "luminance": 0.02046
}

Semantic roles & 50–950 ramp

primary
#2F116A
secondary
#7DA235
accent
#EF39B2
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F116A

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

Preview Lab → · Contrast checker → · Palette generator →

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