#2F173D#2F173D

#2F173D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.8% C 0.074 H 311.5°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#2F173D
RGBrgb(47, 23, 61)
HSLhsl(278, 45%, 16%)
HSVhsv(278, 62%, 24%)
CMYKcmyk(23%, 62.3%, 0%, 76.1%)
CIE-LABlab(12.95, 20.28, -19.70)
CIE-LCHlch(12.95, 28.28, 315.83°)
OKLaboklab(25.81% 0.0488 -0.0552)
OKLCHoklch(25.81% 0.074 311.5)
XYZxyz(2.3208, 1.5541, 4.5917)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F173D #253D17
analogous
#1C173D #2F173D #3D1738
triadic
#2F173D #3D2F17 #173D2F
tetradic
#2F173D #3D1C17 #253D17 #17383D
square
#2F173D #3D1C17 #253D17 #17383D
split-complementary
#2F173D #383D17 #173D1C
monochromatic
#110816 #110816 #2F173D #512869 #733996

Accessibility & contrast

On white

16.02
#2F173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F173D
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F173D#FFFFFF#000000##FFFFFF
##2F173D1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C203E
Deuteranopia (green-blind)
#14223C
Tritanopia (blue-blind)
#2D1E27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f173d;
/* rgb */ color: rgb(47, 23, 61);
/* oklch */ color: oklch(25.8% 0.074 311.5);
Tailwind
colors: {
  custom: {
    50: '#695573',
    500: '#2f173d',
    950: '#000000',
  },
}
SCSS
$custom: #2f173d;
$custom-light: #695573;
$custom-dark: #000000;
JSON
{
  "hex": "#2f173d",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 277.895,
    "s": 45.238,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25808,
    "c": 0.07363,
    "h": 311.5
  },
  "luminance": 0.01554
}

Semantic roles & 50–950 ramp

primary
#2F173D
secondary
#51743C
accent
#D55383
background
#F6F5F6
surface
#EBE8EC
border
#C6C4C7
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F173D

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

Preview Lab → · Contrast checker → · Palette generator →

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