#2F1157#2F1157

#2F1157 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 297.4°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2F1157
RGBrgb(47, 17, 87)
HSLhsl(266, 67%, 20%)
HSVhsv(266, 80%, 34%)
CMYKcmyk(46%, 80.5%, 0%, 65.9%)
CIE-LABlab(13.79, 31.23, -36.34)
CIE-LCHlch(13.79, 47.91, 310.68°)
OKLaboklab(27.08% 0.0539 -0.104)
OKLCHoklch(27.08% 0.117 297.4)
XYZxyz(3.0926, 1.6933, 9.1789)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1157 #395711
analogous
#111657 #2F1157 #521157
triadic
#2F1157 #572F11 #11572F
tetradic
#2F1157 #571116 #395711 #115752
square
#2F1157 #571116 #395711 #115752
split-complementary
#2F1157 #575211 #165711
monochromatic
#0E051A #130724 #2F1157 #4B1B8A #6625BD

Accessibility & contrast

On white

15.69
#2F1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1157
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1157#FFFFFF#000000##FFFFFF
##2F11571.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#252333
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1157;
/* rgb */ color: rgb(47, 17, 87);
/* oklch */ color: oklch(27.1% 0.117 297.4);
Tailwind
colors: {
  custom: {
    50: '#6c5287',
    500: '#2f1157',
    950: '#000000',
  },
}
SCSS
$custom: #2f1157;
$custom-light: #6c5287;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1157",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 265.714,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27083,
    "c": 0.11709,
    "h": 297.4
  },
  "luminance": 0.01693
}

Semantic roles & 50–950 ramp

primary
#2F1157
secondary
#689034
accent
#EA3EA0
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1157

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

Preview Lab → · Contrast checker → · Palette generator →

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