#2F1257#2F1257

#2F1257 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.116 H 297.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#2F1257
RGBrgb(47, 18, 87)
HSLhsl(265, 66%, 21%)
HSVhsv(265, 79%, 34%)
CMYKcmyk(46%, 79.3%, 0%, 65.9%)
CIE-LABlab(13.97, 30.70, -36.04)
CIE-LCHlch(13.97, 47.34, 310.43°)
OKLaboklab(27.21% 0.0528 -0.1031)
OKLCHoklch(27.21% 0.116 297.1)
XYZxyz(3.1084, 1.7250, 9.1842)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1257 #3A5712
analogous
#121857 #2F1257 #511257
triadic
#2F1257 #572F12 #12572F
tetradic
#2F1257 #571218 #3A5712 #125751
square
#2F1257 #571218 #3A5712 #125751
split-complementary
#2F1257 #575112 #185712
monochromatic
#0E0519 #140824 #2F1257 #4A1C8A #6627BC

Accessibility & contrast

On white

15.61
#2F1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1257
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1257#FFFFFF#000000##FFFFFF
##2F12571.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#252433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f1257;
/* rgb */ color: rgb(47, 18, 87);
/* oklch */ color: oklch(27.2% 0.116 297.1);
Tailwind
colors: {
  custom: {
    50: '#6c5387',
    500: '#2f1257',
    950: '#000000',
  },
}
SCSS
$custom: #2f1257;
$custom-light: #6c5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1257",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 265.217,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27213,
    "c": 0.11583,
    "h": 297.1
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#2F1257
secondary
#6A9035
accent
#E93FA1
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1257

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

Preview Lab → · Contrast checker → · Palette generator →

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