#2F1877#2F1877

#2F1877 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 284.9°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#2F1877
RGBrgb(47, 24, 119)
HSLhsl(255, 66%, 28%)
HSVhsv(255, 80%, 47%)
CMYKcmyk(60.5%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.32, 37.25, -49.97)
CIE-LCHlch(18.32, 62.33, 306.70°)
OKLaboklab(31.25% 0.0384 -0.144)
OKLCHoklch(31.25% 0.149 284.9)
XYZxyz(4.8277, 2.5892, 17.6946)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1877 #607718
analogous
#183077 #2F1877 #5E1877
triadic
#2F1877 #772F18 #18772F
tetradic
#2F1877 #771830 #607718 #18775E
square
#2F1877 #771830 #607718 #18775E
split-complementary
#2F1877 #775E18 #307718
monochromatic
#0A0519 #1B0E44 #2F1877 #4322AA #5B33D6

Accessibility & contrast

On white

13.83
#2F1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2F1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1877
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1877#FFFFFF#000000##FFFFFF
##2F18771.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#073347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2f1877;
/* rgb */ color: rgb(47, 24, 119);
/* oklch */ color: oklch(31.3% 0.149 284.9);
Tailwind
colors: {
  custom: {
    50: '#71589f',
    500: '#2f1877',
    950: '#000000',
  },
}
SCSS
$custom: #2f1877;
$custom-light: #71589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1877",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 254.526,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31251,
    "c": 0.149,
    "h": 284.9
  },
  "luminance": 0.0259
}

Semantic roles & 50–950 ramp

primary
#2F1877
secondary
#92AC3F
accent
#E93EC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #2F1877

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

Preview Lab → · Contrast checker → · Palette generator →

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