#2F1998#2F1998

#2F1998 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.188 H 278.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2F1998
RGBrgb(47, 25, 152)
HSLhsl(250, 72%, 35%)
HSVhsv(250, 84%, 60%)
CMYKcmyk(69.1%, 83.6%, 0%, 40.4%)
CIE-LABlab(22.18, 46.84, -64.33)
CIE-LCHlch(22.18, 79.57, 306.06°)
OKLaboklab(35.03% 0.0274 -0.1858)
OKLCHoklch(35.03% 0.188 278.4)
XYZxyz(7.1856, 3.5660, 30.0093)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1998 #829819
analogous
#194298 #2F1998 #6F1998
triadic
#2F1998 #982F19 #19982F
tetradic
#2F1998 #981942 #829819 #19986F
square
#2F1998 #981942 #829819 #19986F
split-complementary
#2F1998 #986F19 #429819
monochromatic
#0E082F #1F1063 #2F1998 #3F22CD #644AE1

Accessibility & contrast

On white

12.26
#2F1998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F1998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1998
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1998#FFFFFF#000000##FFFFFF
##2F19981.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1998;
/* rgb */ color: rgb(47, 25, 152);
/* oklch */ color: oklch(35.0% 0.188 278.4);
Tailwind
colors: {
  custom: {
    50: '#785bb8',
    500: '#2f1998',
    950: '#000000',
  },
}
SCSS
$custom: #2f1998;
$custom-light: #785bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1998",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 152
  },
  "hsl": {
    "h": 250.394,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.1878,
    "h": 278.4
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#2F1998
secondary
#AEC34A
accent
#EE39CF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1998

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

Preview Lab → · Contrast checker → · Palette generator →

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