#2F174D#2F174D

#2F174D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.096 H 300.6°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2F174D
RGBrgb(47, 23, 77)
HSLhsl(267, 54%, 20%)
HSVhsv(267, 70%, 30%)
CMYKcmyk(39%, 70.1%, 0%, 69.8%)
CIE-LABlab(14.13, 24.87, -28.96)
CIE-LCHlch(14.13, 38.17, 310.65°)
OKLaboklab(27.05% 0.0486 -0.0823)
OKLCHoklch(27.05% 0.096 300.6)
XYZxyz(2.8179, 1.7529, 7.2096)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F174D #354D17
analogous
#171A4D #2F174D #4A174D
triadic
#2F174D #4D2F17 #174D2F
tetradic
#2F174D #4D171A #354D17 #174D4A
square
#2F174D #4D171A #354D17 #174D4A
split-complementary
#2F174D #4D4A17 #1A4D17
monochromatic
#0E0718 #12091E #2F174D #4C257C #6933AB

Accessibility & contrast

On white

15.55
#2F174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F174D
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F174D#FFFFFF#000000##FFFFFF
##2F174D1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#03244C
Tritanopia (blue-blind)
#29232F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f174d;
/* rgb */ color: rgb(47, 23, 77);
/* oklch */ color: oklch(27.1% 0.096 300.6);
Tailwind
colors: {
  custom: {
    50: '#6a557f',
    500: '#2f174d',
    950: '#000000',
  },
}
SCSS
$custom: #2f174d;
$custom-light: #6a557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f174d",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 266.667,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27053,
    "c": 0.09559,
    "h": 300.6
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#2F174D
secondary
#64843C
accent
#DD4A9C
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F174D

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

Preview Lab → · Contrast checker → · Palette generator →

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