#2F153B#2F153B

#2F153B is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.3% C 0.075 H 313.9°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#2F153B
RGBrgb(47, 21, 59)
HSLhsl(281, 48%, 16%)
HSVhsv(281, 64%, 23%)
CMYKcmyk(20.3%, 64.4%, 0%, 76.9%)
CIE-LABlab(12.33, 21.03, -19.27)
CIE-LCHlch(12.33, 28.52, 317.50°)
OKLaboklab(25.31% 0.0519 -0.0539)
OKLCHoklch(25.31% 0.075 313.9)
XYZxyz(2.2297, 1.4565, 4.3005)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F153B #213B15
analogous
#1C153B #2F153B #3B1534
triadic
#2F153B #3B2F15 #153B2F
tetradic
#2F153B #3B1C15 #213B15 #15343B
square
#2F153B #3B1C15 #213B15 #15343B
split-complementary
#2F153B #343B15 #153B1C
monochromatic
#120817 #120817 #2F153B #532568 #773595

Accessibility & contrast

On white

16.26
#2F153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F153B
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F153B#FFFFFF#000000##FFFFFF
##2F153B1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1F3C
Deuteranopia (green-blind)
#14213A
Tritanopia (blue-blind)
#2E1B25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f153b;
/* rgb */ color: rgb(47, 21, 59);
/* oklch */ color: oklch(25.3% 0.075 313.9);
Tailwind
colors: {
  custom: {
    50: '#695471',
    500: '#2f153b',
    950: '#000000',
  },
}
SCSS
$custom: #2f153b;
$custom-light: #695471;
$custom-dark: #000000;
JSON
{
  "hex": "#2f153b",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 281.053,
    "s": 47.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2531,
    "c": 0.0748,
    "h": 313.9
  },
  "luminance": 0.01456
}

Semantic roles & 50–950 ramp

primary
#2F153B
secondary
#4B7239
accent
#D7517B
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2F153B

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

Preview Lab → · Contrast checker → · Palette generator →

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