#2F1161#2F1161

#2F1161 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.129 H 293.2°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1161
RGBrgb(47, 17, 97)
HSLhsl(263, 70%, 22%)
HSVhsv(263, 82%, 38%)
CMYKcmyk(51.5%, 82.5%, 0%, 62%)
CIE-LABlab(14.78, 34.15, -41.42)
CIE-LCHlch(14.78, 53.68, 309.50°)
OKLaboklab(28.08% 0.0509 -0.1189)
OKLCHoklch(28.08% 0.129 293.2)
XYZxyz(3.5298, 1.8682, 11.4816)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1161 #436111
analogous
#111B61 #2F1161 #571161
triadic
#2F1161 #612F11 #11612F
tetradic
#2F1161 #61111B #436111 #116157
square
#2F1161 #61111B #436111 #116157
split-complementary
#2F1161 #615711 #1B6111
monochromatic
#0D051A #16082D #2F1161 #481A95 #6123C9

Accessibility & contrast

On white

15.29
#2F1161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1161
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1161#FFFFFF#000000##FFFFFF
##2F11611.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#1F2739
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1161;
/* rgb */ color: rgb(47, 17, 97);
/* oklch */ color: oklch(28.1% 0.129 293.2);
Tailwind
colors: {
  custom: {
    50: '#6e538f',
    500: '#2f1161',
    950: '#000000',
  },
}
SCSS
$custom: #2f1161;
$custom-light: #6e538f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1161",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 262.5,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28083,
    "c": 0.1293,
    "h": 293.2
  },
  "luminance": 0.01868
}

Semantic roles & 50–950 ramp

primary
#2F1161
secondary
#749934
accent
#ED3BAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1161

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

Preview Lab → · Contrast checker → · Palette generator →

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