#2F1E63#2F1E63

#2F1E63 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.115 H 288.9°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2F1E63
RGBrgb(47, 30, 99)
HSLhsl(255, 53%, 25%)
HSVhsv(255, 70%, 39%)
CMYKcmyk(52.5%, 69.7%, 0%, 61.2%)
CIE-LABlab(17.62, 27.38, -38.11)
CIE-LCHlch(17.62, 46.93, 305.70°)
OKLaboklab(30.16% 0.0373 -0.1092)
OKLCHoklch(30.16% 0.115 288.9)
XYZxyz(3.8880, 2.4336, 12.0668)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E63 #52631E
analogous
#1E2F63 #2F1E63 #511E63
triadic
#2F1E63 #632F1E #1E632F
tetradic
#2F1E63 #631E2F #52631E #1E6351
square
#2F1E63 #631E2F #52631E #1E6351
split-complementary
#2F1E63 #63511E #2F631E
monochromatic
#0B0717 #191034 #2F1E63 #452C92 #5C3AC1

Accessibility & contrast

On white

14.12
#2F1E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F1E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E63
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E63#FFFFFF#000000##FFFFFF
##2F1E631.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D65
Deuteranopia (green-blind)
#002962
Tritanopia (blue-blind)
#1D2F3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f1e63;
/* rgb */ color: rgb(47, 30, 99);
/* oklch */ color: oklch(30.2% 0.115 288.9);
Tailwind
colors: {
  custom: {
    50: '#6d5b90',
    500: '#2f1e63',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e63;
$custom-light: #6d5b90;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e63",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 254.783,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30157,
    "c": 0.11542,
    "h": 288.9
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#2F1E63
secondary
#839845
accent
#DD4BB9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2F1E63

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

Preview Lab → · Contrast checker → · Palette generator →

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