#2F1988#2F1988

#2F1988 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.169 H 281.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2F1988
RGBrgb(47, 25, 136)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 53%)
CMYKcmyk(65.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.35, 42.00, -57.41)
CIE-LCHlch(20.35, 71.13, 306.18°)
OKLaboklab(33.22% 0.0325 -0.1657)
OKLCHoklch(33.22% 0.169 281.1)
XYZxyz(5.9625, 3.0767, 23.5674)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1988 #728819
analogous
#193B88 #2F1988 #671988
triadic
#2F1988 #882F19 #19882F
tetradic
#2F1988 #88193B #728819 #198867
square
#2F1988 #88193B #728819 #198867
split-complementary
#2F1988 #886719 #3B8819
monochromatic
#0B0621 #1D0F54 #2F1988 #4123BC #5F40DC

Accessibility & contrast

On white

13.00
#2F1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1988
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1988#FFFFFF#000000##FFFFFF
##2F19881.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002D86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1988;
/* rgb */ color: rgb(47, 25, 136);
/* oklch */ color: oklch(33.2% 0.169 281.1);
Tailwind
colors: {
  custom: {
    50: '#755aac',
    500: '#2f1988',
    950: '#000000',
  },
}
SCSS
$custom: #2f1988;
$custom-light: #755aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1988",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 251.892,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.16883,
    "h": 281.1
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#2F1988
secondary
#A3BB41
accent
#EC3CC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1988

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

Preview Lab → · Contrast checker → · Palette generator →

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