#2F153F#2F153F

#2F153F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.080 H 310.5°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2F153F
RGBrgb(47, 21, 63)
HSLhsl(277, 50%, 16%)
HSVhsv(277, 67%, 25%)
CMYKcmyk(25.4%, 66.7%, 0%, 75.3%)
CIE-LABlab(12.61, 22.10, -21.66)
CIE-LCHlch(12.61, 30.95, 315.58°)
OKLaboklab(25.6% 0.0521 -0.0609)
OKLCHoklch(25.6% 0.08 310.5)
XYZxyz(2.3375, 1.4996, 4.8680)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F153F #253F15
analogous
#1A153F #2F153F #3F153A
triadic
#2F153F #3F2F15 #153F2F
tetradic
#2F153F #3F1A15 #253F15 #153A3F
square
#2F153F #3F1A15 #253F15 #153A3F
split-complementary
#2F153F #3A3F15 #153F1A
monochromatic
#110817 #110817 #2F153F #51246D #73349B

Accessibility & contrast

On white

16.15
#2F153F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F153F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F153F
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F153F#FFFFFF#000000##FFFFFF
##2F153F1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#11213E
Tritanopia (blue-blind)
#2D1D27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f153f;
/* rgb */ color: rgb(47, 21, 63);
/* oklch */ color: oklch(25.6% 0.080 310.5);
Tailwind
colors: {
  custom: {
    50: '#695474',
    500: '#2f153f',
    950: '#000000',
  },
}
SCSS
$custom: #2f153f;
$custom-light: #695474;
$custom-dark: #000000;
JSON
{
  "hex": "#2f153f",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 63
  },
  "hsl": {
    "h": 277.143,
    "s": 50,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25602,
    "c": 0.08011,
    "h": 310.5
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#2F153F
secondary
#517739
accent
#DA4E83
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F153F

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

Preview Lab → · Contrast checker → · Palette generator →

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