#2F175F#2F175F

#2F175F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.7% C 0.120 H 292.5°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2F175F
RGBrgb(47, 23, 95)
HSLhsl(260, 61%, 23%)
HSVhsv(260, 76%, 37%)
CMYKcmyk(50.5%, 75.8%, 0%, 62.7%)
CIE-LABlab(15.71, 30.34, -38.56)
CIE-LCHlch(15.71, 49.07, 308.20°)
OKLaboklab(28.68% 0.0457 -0.1105)
OKLCHoklch(28.68% 0.12 292.5)
XYZxyz(3.5437, 2.0432, 11.0319)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F175F #475F17
analogous
#17235F #2F175F #53175F
triadic
#2F175F #5F2F17 #175F2F
tetradic
#2F175F #5F1723 #475F17 #175F53
square
#2F175F #5F1723 #475F17 #175F53
split-complementary
#2F175F #5F5317 #235F17
monochromatic
#0C0619 #170B2E #2F175F #472390 #602FC2

Accessibility & contrast

On white

14.91
#2F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F175F
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F175F#FFFFFF#000000##FFFFFF
##2F175F1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f175f;
/* rgb */ color: rgb(47, 23, 95);
/* oklch */ color: oklch(28.7% 0.120 292.5);
Tailwind
colors: {
  custom: {
    50: '#6d568d',
    500: '#2f175f',
    950: '#000000',
  },
}
SCSS
$custom: #2f175f;
$custom-light: #6d568d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f175f",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 260,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.2868,
    "c": 0.1196,
    "h": 292.5
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#2F175F
secondary
#78963C
accent
#E444AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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