#2F1147#2F1147

#2F1147 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.097 H 306.1°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#2F1147
RGBrgb(47, 17, 71)
HSLhsl(273, 61%, 17%)
HSVhsv(273, 76%, 28%)
CMYKcmyk(33.8%, 76.1%, 0%, 72.2%)
CIE-LABlab(12.35, 26.68, -27.68)
CIE-LCHlch(12.35, 38.45, 313.94°)
OKLaboklab(25.62% 0.0573 -0.0785)
OKLCHoklch(25.62% 0.097 306.1)
XYZxyz(2.5098, 1.4602, 6.1096)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1147 #294711
analogous
#141147 #2F1147 #471144
triadic
#2F1147 #472F11 #11472F
tetradic
#2F1147 #471411 #294711 #114447
square
#2F1147 #471411 #294711 #114447
split-complementary
#2F1147 #444711 #114714
monochromatic
#100619 #100619 #2F1147 #501D78 #7029AA

Accessibility & contrast

On white

16.25
#2F1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1147
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1147#FFFFFF#000000##FFFFFF
##2F11471.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#032046
Tritanopia (blue-blind)
#2B1D2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f1147;
/* rgb */ color: rgb(47, 17, 71);
/* oklch */ color: oklch(25.6% 0.097 306.1);
Tailwind
colors: {
  custom: {
    50: '#6a527b',
    500: '#2f1147',
    950: '#000000',
  },
}
SCSS
$custom: #2f1147;
$custom-light: #6a527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1147",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 273.333,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25616,
    "c": 0.09719,
    "h": 306.1
  },
  "luminance": 0.0146
}

Semantic roles & 50–950 ramp

primary
#2F1147
secondary
#568133
accent
#E4438B
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2F1147

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

Preview Lab → · Contrast checker → · Palette generator →

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