#2F1154#2F1154

#2F1154 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.113 H 298.8°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1154
RGBrgb(47, 17, 84)
HSLhsl(267, 66%, 20%)
HSVhsv(267, 80%, 33%)
CMYKcmyk(44%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.50, 30.36, -34.77)
CIE-LCHlch(13.50, 46.16, 311.13°)
OKLaboklab(26.79% 0.0547 -0.0993)
OKLCHoklch(26.79% 0.113 298.8)
XYZxyz(2.9726, 1.6453, 8.5467)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1154 #365411
analogous
#111454 #2F1154 #511154
triadic
#2F1154 #542F11 #11542F
tetradic
#2F1154 #541114 #365411 #115451
square
#2F1154 #541114 #365411 #115451
split-complementary
#2F1154 #545111 #145411
monochromatic
#0E0519 #130721 #2F1154 #4B1B87 #6826BA

Accessibility & contrast

On white

15.80
#2F1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1154
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1154#FFFFFF#000000##FFFFFF
##2F11541.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#262231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1154;
/* rgb */ color: rgb(47, 17, 84);
/* oklch */ color: oklch(26.8% 0.113 298.8);
Tailwind
colors: {
  custom: {
    50: '#6c5285',
    500: '#2f1154',
    950: '#000000',
  },
}
SCSS
$custom: #2f1154;
$custom-light: #6c5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1154",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 266.866,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26794,
    "c": 0.11339,
    "h": 298.8
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#2F1154
secondary
#658D34
accent
#E93F9D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1154

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

Preview Lab → · Contrast checker → · Palette generator →

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