#2F165F#2F165F

#2F165F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.121 H 292.7°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#2F165F
RGBrgb(47, 22, 95)
HSLhsl(261, 62%, 23%)
HSVhsv(261, 77%, 37%)
CMYKcmyk(50.5%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.51, 30.91, -38.89)
CIE-LCHlch(15.51, 49.68, 308.48°)
OKLaboklab(28.54% 0.0467 -0.1115)
OKLCHoklch(28.54% 0.121 292.7)
XYZxyz(3.5242, 2.0043, 11.0254)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F165F #465F16
analogous
#16215F #2F165F #53165F
triadic
#2F165F #5F2F16 #165F2F
tetradic
#2F165F #5F1621 #465F16 #165F53
square
#2F165F #5F1621 #465F16 #165F53
split-complementary
#2F165F #5F5316 #215F16
monochromatic
#0C0619 #160A2D #2F165F #482291 #602DC2

Accessibility & contrast

On white

14.99
#2F165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F165F
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F165F#FFFFFF#000000##FFFFFF
##2F165F1.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#202939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f165f;
/* rgb */ color: rgb(47, 22, 95);
/* oklch */ color: oklch(28.5% 0.121 292.7);
Tailwind
colors: {
  custom: {
    50: '#6d568d',
    500: '#2f165f',
    950: '#000000',
  },
}
SCSS
$custom: #2f165f;
$custom-light: #6d568d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f165f",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 260.548,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28536,
    "c": 0.12089,
    "h": 292.7
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#2F165F
secondary
#77963B
accent
#E542AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F165F

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

Preview Lab → · Contrast checker → · Palette generator →

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