#2F153D#2F153D

#2F153D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.077 H 312.2°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2F153D
RGBrgb(47, 21, 61)
HSLhsl(279, 49%, 16%)
HSVhsv(279, 66%, 24%)
CMYKcmyk(23%, 65.6%, 0%, 76.1%)
CIE-LABlab(12.46, 21.56, -20.47)
CIE-LCHlch(12.46, 29.73, 316.49°)
OKLaboklab(25.45% 0.052 -0.0574)
OKLCHoklch(25.45% 0.077 312.2)
XYZxyz(2.2826, 1.4776, 4.5789)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F153D #233D15
analogous
#1B153D #2F153D #3D1537
triadic
#2F153D #3D2F15 #153D2F
tetradic
#2F153D #3D1B15 #233D15 #15373D
square
#2F153D #3D1B15 #233D15 #15373D
split-complementary
#2F153D #373D15 #153D1B
monochromatic
#120817 #120817 #2F153D #52256B #753498

Accessibility & contrast

On white

16.21
#2F153D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F153D
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F153D#FFFFFF#000000##FFFFFF
##2F153D1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091F3E
Deuteranopia (green-blind)
#12213C
Tritanopia (blue-blind)
#2D1C26
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2f153d;
/* rgb */ color: rgb(47, 21, 61);
/* oklch */ color: oklch(25.5% 0.077 312.2);
Tailwind
colors: {
  custom: {
    50: '#695473',
    500: '#2f153d',
    950: '#000000',
  },
}
SCSS
$custom: #2f153d;
$custom-light: #695473;
$custom-dark: #000000;
JSON
{
  "hex": "#2f153d",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 61
  },
  "hsl": {
    "h": 279,
    "s": 48.78,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25454,
    "c": 0.07745,
    "h": 312.2
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#2F153D
secondary
#4E7539
accent
#D84F7F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F153D

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

Preview Lab → · Contrast checker → · Palette generator →

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