#2F1155#2F1155

#2F1155 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.115 H 298.3°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#2F1155
RGBrgb(47, 17, 85)
HSLhsl(266, 67%, 20%)
HSVhsv(266, 80%, 33%)
CMYKcmyk(44.7%, 80%, 0%, 66.7%)
CIE-LABlab(13.60, 30.65, -35.29)
CIE-LCHlch(13.60, 46.74, 310.97°)
OKLaboklab(26.89% 0.0544 -0.1009)
OKLCHoklch(26.89% 0.115 298.3)
XYZxyz(3.0120, 1.6611, 8.7545)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1155 #375511
analogous
#111555 #2F1155 #511155
triadic
#2F1155 #552F11 #11552F
tetradic
#2F1155 #551115 #375511 #115551
square
#2F1155 #551115 #375511 #115551
split-complementary
#2F1155 #555111 #155511
monochromatic
#0E051A #130722 #2F1155 #4B1B88 #6725BB

Accessibility & contrast

On white

15.76
#2F1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1155
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1155#FFFFFF#000000##FFFFFF
##2F11551.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#262232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1155;
/* rgb */ color: rgb(47, 17, 85);
/* oklch */ color: oklch(26.9% 0.115 298.3);
Tailwind
colors: {
  custom: {
    50: '#6c5285',
    500: '#2f1155',
    950: '#000000',
  },
}
SCSS
$custom: #2f1155;
$custom-light: #6c5285;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1155",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 266.471,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.2689,
    "c": 0.11462,
    "h": 298.3
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#2F1155
secondary
#668E34
accent
#EA3E9E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1155

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

Preview Lab → · Contrast checker → · Palette generator →

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