#2F1174#2F1174

#2F1174 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.152 H 286.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2F1174
RGBrgb(47, 17, 116)
HSLhsl(258, 74%, 26%)
HSVhsv(258, 85%, 45%)
CMYKcmyk(59.5%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.82, 39.72, -50.50)
CIE-LCHlch(16.82, 64.25, 308.18°)
OKLaboklab(30.12% 0.0441 -0.1454)
OKLCHoklch(30.12% 0.152 286.9)
XYZxyz(4.5242, 2.2659, 16.7186)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1174 #567411
analogous
#112474 #2F1174 #601174
triadic
#2F1174 #742F11 #11742F
tetradic
#2F1174 #741124 #567411 #117460
square
#2F1174 #741124 #567411 #117460
split-complementary
#2F1174 #746011 #247411
monochromatic
#0B041B #19093F #2F1174 #4519A9 #5A21DE

Accessibility & contrast

On white

14.45
#2F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1174
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1174#FFFFFF#000000##FFFFFF
##2F11741.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#0D2F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f1174;
/* rgb */ color: rgb(47, 17, 116);
/* oklch */ color: oklch(30.1% 0.152 286.9);
Tailwind
colors: {
  custom: {
    50: '#71549d',
    500: '#2f1174',
    950: '#000000',
  },
}
SCSS
$custom: #2f1174;
$custom-light: #71549d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1174",
  "rgb": {
    "r": 47,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 258.182,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30117,
    "c": 0.15198,
    "h": 286.9
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2F1174
secondary
#87AB36
accent
#F137B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #2F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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