#2F2174#2F2174

#2F2174 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.2% C 0.135 H 283.6°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2F2174
RGBrgb(47, 33, 116)
HSLhsl(250, 56%, 29%)
HSVhsv(250, 72%, 45%)
CMYKcmyk(59.5%, 71.6%, 0%, 54.5%)
CIE-LABlab(19.85, 31.14, -45.52)
CIE-LCHlch(19.85, 55.15, 304.37°)
OKLaboklab(32.25% 0.0316 -0.131)
OKLCHoklch(32.25% 0.135 283.6)
XYZxyz(4.8676, 2.9527, 16.8330)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2174 #667421
analogous
#213D74 #2F2174 #592174
triadic
#2F2174 #742F21 #21742F
tetradic
#2F2174 #74213D #667421 #217459
square
#2F2174 #74213D #667421 #217459
split-complementary
#2F2174 #745921 #3D7421
monochromatic
#0A0718 #1C1344 #2F2174 #422FA4 #5C45CA

Accessibility & contrast

On white

13.20
#2F2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2174
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2174#FFFFFF#000000##FFFFFF
##2F21741.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#0B3747
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f2174;
/* rgb */ color: rgb(47, 33, 116);
/* oklch */ color: oklch(32.2% 0.135 283.6);
Tailwind
colors: {
  custom: {
    50: '#705d9d',
    500: '#2f2174',
    950: '#000000',
  },
}
SCSS
$custom: #2f2174;
$custom-light: #705d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2174",
  "rgb": {
    "r": 47,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 250.12,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.13475,
    "h": 283.6
  },
  "luminance": 0.02953
}

Semantic roles & 50–950 ramp

primary
#2F2174
secondary
#98A749
accent
#DF49C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F2174

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

Preview Lab → · Contrast checker → · Palette generator →

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