#2F1657#2F1657

#2F1657 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.110 H 296.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2F1657
RGBrgb(47, 22, 87)
HSLhsl(263, 60%, 21%)
HSVhsv(263, 75%, 34%)
CMYKcmyk(46%, 74.7%, 0%, 65.9%)
CIE-LABlab(14.77, 28.47, -34.74)
CIE-LCHlch(14.77, 44.91, 309.34°)
OKLaboklab(27.78% 0.0484 -0.0993)
OKLCHoklch(27.78% 0.11 296)
XYZxyz(3.1790, 1.8662, 9.2077)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1657 #3E5716
analogous
#161E57 #2F1657 #501657
triadic
#2F1657 #572F16 #16572F
tetradic
#2F1657 #57161E #3E5716 #165750
square
#2F1657 #57161E #3E5716 #165750
split-complementary
#2F1657 #575016 #1E5716
monochromatic
#0D0618 #150A26 #2F1657 #492288 #642FB9

Accessibility & contrast

On white

15.29
#2F1657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2F1657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1657
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1657#FFFFFF#000000##FFFFFF
##2F16571.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#242634
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2f1657;
/* rgb */ color: rgb(47, 22, 87);
/* oklch */ color: oklch(27.8% 0.110 296.0);
Tailwind
colors: {
  custom: {
    50: '#6c5587',
    500: '#2f1657',
    950: '#000000',
  },
}
SCSS
$custom: #2f1657;
$custom-light: #6c5587;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1657",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 263.077,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27779,
    "c": 0.11048,
    "h": 296
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#2F1657
secondary
#6E8E3A
accent
#E345A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2F1657

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

Preview Lab → · Contrast checker → · Palette generator →

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