#2F1874#2F1874

#2F1874 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.145 H 285.7°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2F1874
RGBrgb(47, 24, 116)
HSLhsl(255, 66%, 27%)
HSVhsv(255, 79%, 45%)
CMYKcmyk(59.5%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.00, 36.32, -48.56)
CIE-LCHlch(18.00, 60.64, 306.79°)
OKLaboklab(30.94% 0.0393 -0.1398)
OKLCHoklch(30.94% 0.145 285.7)
XYZxyz(4.6504, 2.5183, 16.7606)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1874 #5D7418
analogous
#182F74 #2F1874 #5D1874
triadic
#2F1874 #742F18 #18742F
tetradic
#2F1874 #74182F #5D7418 #18745D
square
#2F1874 #74182F #5D7418 #18745D
split-complementary
#2F1874 #745D18 #2F7418
monochromatic
#0A0519 #1A0E41 #2F1874 #4422A7 #5B32D5

Accessibility & contrast

On white

13.96
#2F1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2F1874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1874
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1874#FFFFFF#000000##FFFFFF
##2F18741.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#0C3245
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1874;
/* rgb */ color: rgb(47, 24, 116);
/* oklch */ color: oklch(30.9% 0.145 285.7);
Tailwind
colors: {
  custom: {
    50: '#71589d',
    500: '#2f1874',
    950: '#000000',
  },
}
SCSS
$custom: #2f1874;
$custom-light: #71589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1874",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 255,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30935,
    "c": 0.14526,
    "h": 285.7
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#2F1874
secondary
#8FA93F
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1874

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

Preview Lab → · Contrast checker → · Palette generator →

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