#2F173C#2F173C

#2F173C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.072 H 312.3°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#2F173C
RGBrgb(47, 23, 60)
HSLhsl(279, 45%, 16%)
HSVhsv(279, 62%, 24%)
CMYKcmyk(21.7%, 61.7%, 0%, 76.5%)
CIE-LABlab(12.88, 20.01, -19.10)
CIE-LCHlch(12.88, 27.66, 316.33°)
OKLaboklab(25.74% 0.0487 -0.0534)
OKLCHoklch(25.74% 0.072 312.3)
XYZxyz(2.2942, 1.5434, 4.4511)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F173C #243C17
analogous
#1D173C #2F173C #3C1737
triadic
#2F173C #3C2F17 #173C2F
tetradic
#2F173C #3C1D17 #243C17 #17373C
square
#2F173C #3C1D17 #243C17 #17373C
split-complementary
#2F173C #373C17 #173C1D
monochromatic
#110816 #110816 #2F173C #522868 #743994

Accessibility & contrast

On white

16.05
#2F173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F173C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F173C
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F173C#FFFFFF#000000##FFFFFF
##2F173C1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D203D
Deuteranopia (green-blind)
#15223B
Tritanopia (blue-blind)
#2E1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f173c;
/* rgb */ color: rgb(47, 23, 60);
/* oklch */ color: oklch(25.7% 0.072 312.3);
Tailwind
colors: {
  custom: {
    50: '#695572',
    500: '#2f173c',
    950: '#000000',
  },
}
SCSS
$custom: #2f173c;
$custom-light: #695572;
$custom-dark: #000000;
JSON
{
  "hex": "#2f173c",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 278.919,
    "s": 44.578,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25738,
    "c": 0.07226,
    "h": 312.3
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#2F173C
secondary
#4F733C
accent
#D45481
background
#F6F5F6
surface
#EBE8EC
border
#C6C4C7
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F173C

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

Preview Lab → · Contrast checker → · Palette generator →

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