#2F1B74#2F1B74

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

Color values

HEX#2F1B74
RGBrgb(47, 27, 116)
HSLhsl(253, 62%, 28%)
HSVhsv(253, 77%, 45%)
CMYKcmyk(59.5%, 76.7%, 0%, 54.5%)
CIE-LABlab(18.58, 34.68, -47.61)
CIE-LCHlch(18.58, 58.90, 306.07°)
OKLaboklab(31.34% 0.0369 -0.1371)
OKLCHoklch(31.34% 0.142 285.1)
XYZxyz(4.7157, 2.6489, 16.7824)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B74 #60741B
analogous
#1B3374 #2F1B74 #5B1B74
triadic
#2F1B74 #742F1B #1B742F
tetradic
#2F1B74 #741B33 #60741B #1B745B
square
#2F1B74 #741B33 #60741B #1B745B
split-complementary
#2F1B74 #745B1B #33741B
monochromatic
#0A0619 #1B0F42 #2F1B74 #4327A6 #5B39D1

Accessibility & contrast

On white

13.73
#2F1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2F1B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B74
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B74#FFFFFF#000000##FFFFFF
##2F1B741.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1b74;
/* rgb */ color: rgb(47, 27, 116);
/* oklch */ color: oklch(31.3% 0.142 285.1);
Tailwind
colors: {
  custom: {
    50: '#705a9d',
    500: '#2f1b74',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b74;
$custom-light: #705a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b74",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 253.483,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.14197,
    "h": 285.1
  },
  "luminance": 0.02649
}

Semantic roles & 50–950 ramp

primary
#2F1B74
secondary
#92A942
accent
#E542C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2F1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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