#2F174A#2F174A

#2F174A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.091 H 302.3°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2F174A
RGBrgb(47, 23, 74)
HSLhsl(268, 53%, 19%)
HSVhsv(268, 69%, 29%)
CMYKcmyk(36.5%, 68.9%, 0%, 71%)
CIE-LABlab(13.89, 23.98, -27.28)
CIE-LCHlch(13.89, 36.32, 311.32°)
OKLaboklab(26.8% 0.0488 -0.0774)
OKLCHoklch(26.8% 0.092 302.3)
XYZxyz(2.7144, 1.7115, 6.6646)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F174A #324A17
analogous
#17194A #2F174A #49174A
triadic
#2F174A #4A2F17 #174A2F
tetradic
#2F174A #4A1719 #324A17 #174A49
square
#2F174A #4A1719 #324A17 #174A49
split-complementary
#2F174A #4A4917 #194A17
monochromatic
#0F0717 #11081B #2F174A #4D2679 #6A34A7

Accessibility & contrast

On white

15.64
#2F174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F174A
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F174A#FFFFFF#000000##FFFFFF
##2F174A1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#072349
Tritanopia (blue-blind)
#2A222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f174a;
/* rgb */ color: rgb(47, 23, 74);
/* oklch */ color: oklch(26.8% 0.091 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a557d',
    500: '#2f174a',
    950: '#000000',
  },
}
SCSS
$custom: #2f174a;
$custom-light: #6a557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f174a",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 268.235,
    "s": 52.577,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26804,
    "c": 0.0915,
    "h": 302.3
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#2F174A
secondary
#60813C
accent
#DC4C98
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F174A

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

Preview Lab → · Contrast checker → · Palette generator →

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