#2F153A#2F153A

#2F153A is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.073 H 314.8°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2F153A
RGBrgb(47, 21, 58)
HSLhsl(282, 47%, 15%)
HSVhsv(282, 64%, 23%)
CMYKcmyk(19%, 63.8%, 0%, 77.3%)
CIE-LABlab(12.26, 20.76, -18.66)
CIE-LCHlch(12.26, 27.92, 318.05°)
OKLaboklab(25.24% 0.0518 -0.0521)
OKLCHoklch(25.24% 0.073 314.8)
XYZxyz(2.2041, 1.4462, 4.1652)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F153A #203A15
analogous
#1C153A #2F153A #3A1532
triadic
#2F153A #3A2F15 #153A2F
tetradic
#2F153A #3A1C15 #203A15 #15323A
square
#2F153A #3A1C15 #203A15 #15323A
split-complementary
#2F153A #323A15 #153A1C
monochromatic
#120816 #120816 #2F153A #532567 #783694

Accessibility & contrast

On white

16.29
#2F153A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2F153A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F153A
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F153A#FFFFFF#000000##FFFFFF
##2F153A1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1F3B
Deuteranopia (green-blind)
#152139
Tritanopia (blue-blind)
#2E1B25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f153a;
/* rgb */ color: rgb(47, 21, 58);
/* oklch */ color: oklch(25.2% 0.073 314.8);
Tailwind
colors: {
  custom: {
    50: '#695370',
    500: '#2f153a',
    950: '#000000',
  },
}
SCSS
$custom: #2f153a;
$custom-light: #695370;
$custom-dark: #000000;
JSON
{
  "hex": "#2f153a",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 58
  },
  "hsl": {
    "h": 282.162,
    "s": 46.835,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25239,
    "c": 0.07348,
    "h": 314.8
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#2F153A
secondary
#4A7139
accent
#D65179
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F153A

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

Preview Lab → · Contrast checker → · Palette generator →

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