#2F173B#2F173B

#2F173B is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.7% C 0.071 H 313.2°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2F173B
RGBrgb(47, 23, 59)
HSLhsl(280, 44%, 16%)
HSVhsv(280, 61%, 23%)
CMYKcmyk(20.3%, 61%, 0%, 76.9%)
CIE-LABlab(12.82, 19.74, -18.49)
CIE-LCHlch(12.82, 27.05, 316.86°)
OKLaboklab(25.67% 0.0486 -0.0516)
OKLCHoklch(25.67% 0.071 313.2)
XYZxyz(2.2680, 1.5330, 4.3132)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F173B #233B17
analogous
#1D173B #2F173B #3B1735
triadic
#2F173B #3B2F17 #173B2F
tetradic
#2F173B #3B1D17 #233B17 #17353B
square
#2F173B #3B1D17 #233B17 #17353B
split-complementary
#2F173B #353B17 #173B1D
monochromatic
#120916 #120916 #2F173B #522867 #753993

Accessibility & contrast

On white

16.07
#2F173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F173B
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F173B#FFFFFF#000000##FFFFFF
##2F173B1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E203C
Deuteranopia (green-blind)
#16223A
Tritanopia (blue-blind)
#2E1D26
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f173b;
/* rgb */ color: rgb(47, 23, 59);
/* oklch */ color: oklch(25.7% 0.071 313.2);
Tailwind
colors: {
  custom: {
    50: '#695571',
    500: '#2f173b',
    950: '#000000',
  },
}
SCSS
$custom: #2f173b;
$custom-light: #695571;
$custom-dark: #000000;
JSON
{
  "hex": "#2f173b",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 280,
    "s": 43.902,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25668,
    "c": 0.07089,
    "h": 313.2
  },
  "luminance": 0.01533
}

Semantic roles & 50–950 ramp

primary
#2F173B
secondary
#4E723C
accent
#D4547F
background
#F6F4F6
surface
#EBE8EC
border
#C6C4C7
text
#060307
muted
#7A787A

Preview Lab

Preview with #2F173B

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

Preview Lab → · Contrast checker → · Palette generator →

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