#2F174F#2F174F

#2F174F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.098 H 299.5°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2F174F
RGBrgb(47, 23, 79)
HSLhsl(266, 55%, 20%)
HSVhsv(266, 71%, 31%)
CMYKcmyk(40.5%, 70.9%, 0%, 69%)
CIE-LABlab(14.30, 25.46, -30.07)
CIE-LCHlch(14.30, 39.40, 310.26°)
OKLaboklab(27.22% 0.0484 -0.0856)
OKLCHoklch(27.22% 0.098 299.5)
XYZxyz(2.8896, 1.7816, 7.5873)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F174F #374F17
analogous
#171B4F #2F174F #4B174F
triadic
#2F174F #4F2F17 #174F2F
tetradic
#2F174F #4F171B #374F17 #174F4B
square
#2F174F #4F171B #374F17 #174F4B
split-complementary
#2F174F #4F4B17 #1B4F17
monochromatic
#0E0718 #130920 #2F174F #4B257E #6733AE

Accessibility & contrast

On white

15.48
#2F174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F174F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F174F#FFFFFF#000000##FFFFFF
##2F174F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00244E
Tritanopia (blue-blind)
#282430
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f174f;
/* rgb */ color: rgb(47, 23, 79);
/* oklch */ color: oklch(27.2% 0.098 299.5);
Tailwind
colors: {
  custom: {
    50: '#6b5681',
    500: '#2f174f',
    950: '#000000',
  },
}
SCSS
$custom: #2f174f;
$custom-light: #6b5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2f174f",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 265.714,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.27223,
    "c": 0.09831,
    "h": 299.5
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#2F174F
secondary
#66863C
accent
#DE4A9F
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F174F

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

Preview Lab → · Contrast checker → · Palette generator →

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