#2F1169#2F1169

#2F1169 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.139 H 290.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1169
RGBrgb(47, 17, 105)
HSLhsl(260, 72%, 24%)
HSVhsv(260, 84%, 41%)
CMYKcmyk(55.2%, 83.8%, 0%, 58.8%)
CIE-LABlab(15.62, 36.49, -45.33)
CIE-LCHlch(15.62, 58.19, 308.84°)
OKLaboklab(28.92% 0.0482 -0.1303)
OKLCHoklch(28.92% 0.139 290.3)
XYZxyz(3.9218, 2.0250, 13.5461)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1169 #4B6911
analogous
#111F69 #2F1169 #5B1169
triadic
#2F1169 #692F11 #11692F
tetradic
#2F1169 #69111F #4B6911 #11695B
square
#2F1169 #69111F #4B6911 #11695B
split-complementary
#2F1169 #695B11 #1F6911
monochromatic
#0C041A #170834 #2F1169 #471A9E #5E22D2

Accessibility & contrast

On white

14.95
#2F1169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1169
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1169#FFFFFF#000000##FFFFFF
##2F11691.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#192B3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1169;
/* rgb */ color: rgb(47, 17, 105);
/* oklch */ color: oklch(28.9% 0.139 290.3);
Tailwind
colors: {
  custom: {
    50: '#6f5495',
    500: '#2f1169',
    950: '#000000',
  },
}
SCSS
$custom: #2f1169;
$custom-light: #6f5495;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1169",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 260.455,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2892,
    "c": 0.13893,
    "h": 290.3
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#2F1169
secondary
#7CA135
accent
#EF39B1
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1169

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

Preview Lab → · Contrast checker → · Palette generator →

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