#2F1160#2F1160

#2F1160 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 28.0% C 0.128 H 293.6°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2F1160
RGBrgb(47, 17, 96)
HSLhsl(263, 70%, 22%)
HSVhsv(263, 82%, 38%)
CMYKcmyk(51%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.68, 33.85, -40.92)
CIE-LCHlch(14.68, 53.11, 309.60°)
OKLaboklab(27.98% 0.0512 -0.1174)
OKLCHoklch(27.98% 0.128 293.6)
XYZxyz(3.4835, 1.8497, 11.2375)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1160 #426011
analogous
#111A60 #2F1160 #571160
triadic
#2F1160 #602F11 #11602F
tetradic
#2F1160 #60111A #426011 #116057
square
#2F1160 #60111A #426011 #116057
split-complementary
#2F1160 #605711 #1A6011
monochromatic
#0D051A #16082C #2F1160 #481A94 #6223C8

Accessibility & contrast

On white

15.33
#2F1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1160
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1160#FFFFFF#000000##FFFFFF
##2F11601.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#202738
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1160;
/* rgb */ color: rgb(47, 17, 96);
/* oklch */ color: oklch(28.0% 0.128 293.6);
Tailwind
colors: {
  custom: {
    50: '#6e538e',
    500: '#2f1160',
    950: '#000000',
  },
}
SCSS
$custom: #2f1160;
$custom-light: #6e538e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1160",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 262.785,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2798,
    "c": 0.12808,
    "h": 293.6
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#2F1160
secondary
#729934
accent
#ED3BA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F1160

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

Preview Lab → · Contrast checker → · Palette generator →

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