#2F174C#2F174C

#2F174C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.094 H 301.1°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2F174C
RGBrgb(47, 23, 76)
HSLhsl(267, 54%, 19%)
HSVhsv(267, 70%, 30%)
CMYKcmyk(38.2%, 69.7%, 0%, 70.2%)
CIE-LABlab(14.05, 24.57, -28.40)
CIE-LCHlch(14.05, 37.55, 310.86°)
OKLaboklab(26.97% 0.0487 -0.0807)
OKLCHoklch(26.97% 0.094 301.1)
XYZxyz(2.7829, 1.7389, 7.0251)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F174C #344C17
analogous
#171A4C #2F174C #4A174C
triadic
#2F174C #4C2F17 #174C2F
tetradic
#2F174C #4C171A #344C17 #174C4A
square
#2F174C #4C171A #344C17 #174C4A
split-complementary
#2F174C #4C4A17 #1A4C17
monochromatic
#0F0717 #12091D #2F174C #4C257B #6933AA

Accessibility & contrast

On white

15.58
#2F174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F174C
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F174C#FFFFFF#000000##FFFFFF
##2F174C1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#04234B
Tritanopia (blue-blind)
#29232F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f174c;
/* rgb */ color: rgb(47, 23, 76);
/* oklch */ color: oklch(27.0% 0.094 301.1);
Tailwind
colors: {
  custom: {
    50: '#6a557e',
    500: '#2f174c',
    950: '#000000',
  },
}
SCSS
$custom: #2f174c;
$custom-light: #6a557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f174c",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 267.17,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26969,
    "c": 0.09423,
    "h": 301.1
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#2F174C
secondary
#63833C
accent
#DD4B9B
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F174C

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

Preview Lab → · Contrast checker → · Palette generator →

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