#2F1688#2F1688

#2F1688 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.171 H 281.5°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#2F1688
RGBrgb(47, 22, 136)
HSLhsl(253, 72%, 31%)
HSVhsv(253, 84%, 53%)
CMYKcmyk(65.4%, 83.8%, 0%, 46.7%)
CIE-LABlab(19.86, 43.41, -58.21)
CIE-LCHlch(19.86, 72.62, 306.71°)
OKLaboklab(32.89% 0.0341 -0.168)
OKLCHoklch(32.89% 0.171 281.5)
XYZxyz(5.9017, 2.9553, 23.5472)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1688 #6F8816
analogous
#163688 #2F1688 #681688
triadic
#2F1688 #882F16 #16882F
tetradic
#2F1688 #881636 #6F8816 #168868
square
#2F1688 #881636 #6F8816 #168868
split-complementary
#2F1688 #886816 #368816
monochromatic
#0B051F #1D0D53 #2F1688 #411FBD #5E39DF

Accessibility & contrast

On white

13.20
#2F1688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2F1688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1688
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1688#FFFFFF#000000##FFFFFF
##2F16881.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2f1688;
/* rgb */ color: rgb(47, 22, 136);
/* oklch */ color: oklch(32.9% 0.171 281.5);
Tailwind
colors: {
  custom: {
    50: '#7558ac',
    500: '#2f1688',
    950: '#000000',
  },
}
SCSS
$custom: #2f1688;
$custom-light: #7558ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1688",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 253.158,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32885,
    "c": 0.1714,
    "h": 281.5
  },
  "luminance": 0.02956
}

Semantic roles & 50–950 ramp

primary
#2F1688
secondary
#A0BC3E
accent
#EF39C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F1688

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

Preview Lab → · Contrast checker → · Palette generator →

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