#2F1757#2F1757

#2F1757 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.109 H 295.7°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2F1757
RGBrgb(47, 23, 87)
HSLhsl(263, 58%, 22%)
HSVhsv(263, 74%, 34%)
CMYKcmyk(46%, 73.6%, 0%, 65.9%)
CIE-LABlab(14.98, 27.88, -34.39)
CIE-LCHlch(14.98, 44.27, 309.04°)
OKLaboklab(27.93% 0.0473 -0.0983)
OKLCHoklch(27.93% 0.109 295.7)
XYZxyz(3.1985, 1.9052, 9.2142)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1757 #3F5717
analogous
#171F57 #2F1757 #4F1757
triadic
#2F1757 #572F17 #17572F
tetradic
#2F1757 #57171F #3F5717 #17574F
square
#2F1757 #57171F #3F5717 #17574F
split-complementary
#2F1757 #574F17 #1F5717
monochromatic
#0D0618 #150A27 #2F1757 #492487 #6331B8

Accessibility & contrast

On white

15.21
#2F1757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2F1757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1757
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1757#FFFFFF#000000##FFFFFF
##2F17571.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#242635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2f1757;
/* rgb */ color: rgb(47, 23, 87);
/* oklch */ color: oklch(27.9% 0.109 295.7);
Tailwind
colors: {
  custom: {
    50: '#6c5687',
    500: '#2f1757',
    950: '#000000',
  },
}
SCSS
$custom: #2f1757;
$custom-light: #6c5687;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1757",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 262.5,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27931,
    "c": 0.10906,
    "h": 295.7
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#2F1757
secondary
#6F8E3C
accent
#E146A7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1757

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

Preview Lab → · Contrast checker → · Palette generator →

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