#2F1164#2F1164

#2F1164 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.133 H 292.0°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2F1164
RGBrgb(47, 17, 100)
HSLhsl(262, 71%, 23%)
HSVhsv(262, 83%, 39%)
CMYKcmyk(53%, 83%, 0%, 60.8%)
CIE-LABlab(15.09, 35.02, -42.90)
CIE-LCHlch(15.09, 55.38, 309.23°)
OKLaboklab(28.39% 0.0499 -0.1232)
OKLCHoklch(28.39% 0.133 292)
XYZxyz(3.6723, 1.9252, 12.2322)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1164 #466411
analogous
#111C64 #2F1164 #581164
triadic
#2F1164 #642F11 #11642F
tetradic
#2F1164 #64111C #466411 #116458
square
#2F1164 #64111C #466411 #116458
split-complementary
#2F1164 #645811 #1C6411
monochromatic
#0C041A #160830 #2F1164 #481A98 #6023CD

Accessibility & contrast

On white

15.16
#2F1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2F1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1164
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1164#FFFFFF#000000##FFFFFF
##2F11641.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#1D293A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1164;
/* rgb */ color: rgb(47, 17, 100);
/* oklch */ color: oklch(28.4% 0.133 292.0);
Tailwind
colors: {
  custom: {
    50: '#6e5391',
    500: '#2f1164',
    950: '#000000',
  },
}
SCSS
$custom: #2f1164;
$custom-light: #6e5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1164",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 261.687,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28393,
    "c": 0.13292,
    "h": 292
  },
  "luminance": 0.01925
}

Semantic roles & 50–950 ramp

primary
#2F1164
secondary
#779C35
accent
#EE3AAD
background
#F7F4F9
surface
#EDE7F1
border
#C8C3CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1164

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

Preview Lab → · Contrast checker → · Palette generator →

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