#2F1060#2F1060

#2F1060 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.129 H 293.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2F1060
RGBrgb(47, 16, 96)
HSLhsl(263, 71%, 22%)
HSVhsv(263, 83%, 38%)
CMYKcmyk(51%, 83.3%, 0%, 62.4%)
CIE-LABlab(14.51, 34.34, -41.20)
CIE-LCHlch(14.51, 53.63, 309.81°)
OKLaboklab(27.86% 0.0521 -0.1182)
OKLCHoklch(27.86% 0.129 293.8)
XYZxyz(3.4683, 1.8193, 11.2325)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1060 #416010
analogous
#101960 #2F1060 #571060
triadic
#2F1060 #602F10 #10602F
tetradic
#2F1060 #601019 #416010 #106057
square
#2F1060 #601019 #416010 #106057
split-complementary
#2F1060 #605710 #196010
monochromatic
#0D041A #15072C #2F1060 #491994 #6221C9

Accessibility & contrast

On white

15.40
#2F1060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F1060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1060
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1060#FFFFFF#000000##FFFFFF
##2F10601.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1060;
/* rgb */ color: rgb(47, 16, 96);
/* oklch */ color: oklch(27.9% 0.129 293.8);
Tailwind
colors: {
  custom: {
    50: '#6e528e',
    500: '#2f1060',
    950: '#000000',
  },
}
SCSS
$custom: #2f1060;
$custom-light: #6e528e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1060",
  "rgb": {
    "r": 47,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 263.25,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27863,
    "c": 0.12917,
    "h": 293.8
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#2F1060
secondary
#719933
accent
#EE3AA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #2F1060

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

Preview Lab → · Contrast checker → · Palette generator →

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