#2F1252#2F1252

#2F1252 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.110 H 299.5°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1252
RGBrgb(47, 18, 82)
HSLhsl(267, 64%, 20%)
HSVhsv(267, 78%, 32%)
CMYKcmyk(42.7%, 78%, 0%, 67.8%)
CIE-LABlab(13.51, 29.25, -33.40)
CIE-LCHlch(13.51, 44.39, 311.21°)
OKLaboklab(26.74% 0.054 -0.0953)
OKLCHoklch(26.74% 0.11 299.5)
XYZxyz(2.9112, 1.6461, 8.1454)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1252 #355212
analogous
#121552 #2F1252 #4F1252
triadic
#2F1252 #522F12 #12522F
tetradic
#2F1252 #521215 #355212 #12524F
square
#2F1252 #521215 #355212 #12524F
split-complementary
#2F1252 #524F12 #155212
monochromatic
#0E0619 #120720 #2F1252 #4C1D84 #6928B6

Accessibility & contrast

On white

15.80
#2F1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1252
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1252#FFFFFF#000000##FFFFFF
##2F12521.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#272230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f1252;
/* rgb */ color: rgb(47, 18, 82);
/* oklch */ color: oklch(26.7% 0.110 299.5);
Tailwind
colors: {
  custom: {
    50: '#6b5383',
    500: '#2f1252',
    950: '#000000',
  },
}
SCSS
$custom: #2f1252;
$custom-light: #6b5383;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1252",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 267.188,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2674,
    "c": 0.10958,
    "h": 299.5
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#2F1252
secondary
#648B35
accent
#E7419C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2F1252

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

Preview Lab → · Contrast checker → · Palette generator →

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