#2F1C74#2F1C74

#2F1C74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 284.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2F1C74
RGBrgb(47, 28, 116)
HSLhsl(253, 61%, 28%)
HSVhsv(253, 76%, 45%)
CMYKcmyk(59.5%, 75.9%, 0%, 54.5%)
CIE-LABlab(18.78, 34.11, -47.28)
CIE-LCHlch(18.78, 58.30, 305.81°)
OKLaboklab(31.48% 0.036 -0.1361)
OKLCHoklch(31.48% 0.141 284.8)
XYZxyz(4.7390, 2.6955, 16.7902)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C74 #61741C
analogous
#1C3574 #2F1C74 #5B1C74
triadic
#2F1C74 #742F1C #1C742F
tetradic
#2F1C74 #741C35 #61741C #1C745B
square
#2F1C74 #741C35 #61741C #1C745B
split-complementary
#2F1C74 #745B1C #35741C
monochromatic
#0A0619 #1B1043 #2F1C74 #4328A5 #5B3BD0

Accessibility & contrast

On white

13.64
#2F1C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1C74
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C74#FFFFFF#000000##FFFFFF
##2F1C741.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#0C3446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1c74;
/* rgb */ color: rgb(47, 28, 116);
/* oklch */ color: oklch(31.5% 0.141 284.8);
Tailwind
colors: {
  custom: {
    50: '#705a9d',
    500: '#2f1c74',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c74;
$custom-light: #705a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c74",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 252.955,
    "s": 61.111,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31484,
    "c": 0.14082,
    "h": 284.8
  },
  "luminance": 0.02696
}

Semantic roles & 50–950 ramp

primary
#2F1C74
secondary
#93A843
accent
#E444C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1C74

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

Preview Lab → · Contrast checker → · Palette generator →

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