#2F173E#2F173E

#2F173E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.075 H 310.6°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#2F173E
RGBrgb(47, 23, 62)
HSLhsl(277, 46%, 17%)
HSVhsv(277, 63%, 24%)
CMYKcmyk(24.2%, 62.9%, 0%, 75.7%)
CIE-LABlab(13.02, 20.55, -20.30)
CIE-LCHlch(13.02, 28.89, 315.35°)
OKLaboklab(25.88% 0.0488 -0.0569)
OKLCHoklch(25.88% 0.075 310.6)
XYZxyz(2.3480, 1.5650, 4.7349)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F173E #263E17
analogous
#1C173E #2F173E #3E173A
triadic
#2F173E #3E2F17 #173E2F
tetradic
#2F173E #3E1C17 #263E17 #173A3E
square
#2F173E #3E1C17 #263E17 #173A3E
split-complementary
#2F173E #3A3E17 #173E1C
monochromatic
#110816 #110816 #2F173E #51286B #733897

Accessibility & contrast

On white

15.99
#2F173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2F173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F173E
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F173E#FFFFFF#000000##FFFFFF
##2F173E1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203F
Deuteranopia (green-blind)
#14223D
Tritanopia (blue-blind)
#2D1E27
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2f173e;
/* rgb */ color: rgb(47, 23, 62);
/* oklch */ color: oklch(25.9% 0.075 310.6);
Tailwind
colors: {
  custom: {
    50: '#695573',
    500: '#2f173e',
    950: '#000000',
  },
}
SCSS
$custom: #2f173e;
$custom-light: #695573;
$custom-dark: #000000;
JSON
{
  "hex": "#2f173e",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 276.923,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2588,
    "c": 0.075,
    "h": 310.6
  },
  "luminance": 0.01565
}

Semantic roles & 50–950 ramp

primary
#2F173E
secondary
#52753C
accent
#D65285
background
#F6F5F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2F173E

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

Preview Lab → · Contrast checker → · Palette generator →

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