#2F175D#2F175D

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

Color values

HEX#2F175D
RGBrgb(47, 23, 93)
HSLhsl(261, 60%, 23%)
HSVhsv(261, 75%, 36%)
CMYKcmyk(49.5%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.53, 29.73, -37.53)
CIE-LCHlch(15.53, 47.88, 308.38°)
OKLaboklab(28.49% 0.0461 -0.1075)
OKLCHoklch(28.49% 0.117 293.2)
XYZxyz(3.4539, 2.0073, 10.5593)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F175D #455D17
analogous
#17225D #2F175D #52175D
triadic
#2F175D #5D2F17 #175D2F
tetradic
#2F175D #5D1722 #455D17 #175D52
square
#2F175D #5D1722 #455D17 #175D52
split-complementary
#2F175D #5D5217 #225D17
monochromatic
#0C0619 #160B2C #2F175D #48238E #612FBF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F175D#FFFFFF#000000##FFFFFF
##2F175D1.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)
#00285F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#212938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f175d;
/* rgb */ color: rgb(47, 23, 93);
/* oklch */ color: oklch(28.5% 0.117 293.2);
Tailwind
colors: {
  custom: {
    50: '#6d568c',
    500: '#2f175d',
    950: '#000000',
  },
}
SCSS
$custom: #2f175d;
$custom-light: #6d568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f175d",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 260.571,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28489,
    "c": 0.11698,
    "h": 293.2
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#2F175D
secondary
#76943C
accent
#E344AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F175D

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

Preview Lab → · Contrast checker → · Palette generator →

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