#2F2078#2F2078

#2F2078 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.141 H 283.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#2F2078
RGBrgb(47, 32, 120)
HSLhsl(250, 58%, 30%)
HSVhsv(250, 73%, 47%)
CMYKcmyk(60.8%, 73.3%, 0%, 52.9%)
CIE-LABlab(20.02, 33.07, -47.82)
CIE-LCHlch(20.02, 58.14, 304.67°)
OKLaboklab(32.48% 0.0317 -0.1377)
OKLCHoklch(32.48% 0.141 283)
XYZxyz(5.0779, 2.9931, 18.0758)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2078 #697820
analogous
#203D78 #2F2078 #5B2078
triadic
#2F2078 #782F20 #20782F
tetradic
#2F2078 #78203D #697820 #20785B
square
#2F2078 #78203D #697820 #20785B
split-complementary
#2F2078 #785B20 #3D7820
monochromatic
#090618 #1C1348 #2F2078 #422DA8 #5C45CD

Accessibility & contrast

On white

13.14
#2F2078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2F2078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2078
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2078#FFFFFF#000000##FFFFFF
##2F20781.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#033849
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2078;
/* rgb */ color: rgb(47, 32, 120);
/* oklch */ color: oklch(32.5% 0.141 283.0);
Tailwind
colors: {
  custom: {
    50: '#715da0',
    500: '#2f2078',
    950: '#000000',
  },
}
SCSS
$custom: #2f2078;
$custom-light: #715da0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2078",
  "rgb": {
    "r": 47,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 250.227,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32483,
    "c": 0.14134,
    "h": 283
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#2F2078
secondary
#9AAB48
accent
#E147C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2F2078

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

Preview Lab → · Contrast checker → · Palette generator →

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