#2F1776#2F1776

#2F1776 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 285.4°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2F1776
RGBrgb(47, 23, 118)
HSLhsl(255, 67%, 28%)
HSVhsv(255, 81%, 46%)
CMYKcmyk(60.2%, 80.5%, 0%, 53.7%)
CIE-LABlab(18.03, 37.46, -49.80)
CIE-LCHlch(18.03, 62.32, 306.95°)
OKLaboklab(31.02% 0.0394 -0.1435)
OKLCHoklch(31.02% 0.149 285.4)
XYZxyz(4.7477, 2.5248, 17.3732)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1776 #5E7617
analogous
#172E76 #2F1776 #5F1776
triadic
#2F1776 #762F17 #17762F
tetradic
#2F1776 #76172E #5E7617 #17765F
square
#2F1776 #76172E #5E7617 #17765F
split-complementary
#2F1776 #765F17 #2E7617
monochromatic
#0A051A #1B0D43 #2F1776 #4321A9 #5B31D7

Accessibility & contrast

On white

13.95
#2F1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1776
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1776#FFFFFF#000000##FFFFFF
##2F17761.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#093246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1776;
/* rgb */ color: rgb(47, 23, 118);
/* oklch */ color: oklch(31.0% 0.149 285.4);
Tailwind
colors: {
  custom: {
    50: '#71579e',
    500: '#2f1776',
    950: '#000000',
  },
}
SCSS
$custom: #2f1776;
$custom-light: #71579e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1776",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 255.158,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31019,
    "c": 0.14877,
    "h": 285.4
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#2F1776
secondary
#90AB3E
accent
#EA3EBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2F1776

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

Preview Lab → · Contrast checker → · Palette generator →

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