#2F149F#2F149F

#2F149F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.199 H 277.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2F149F
RGBrgb(47, 20, 159)
HSLhsl(252, 78%, 35%)
HSVhsv(252, 87%, 62%)
CMYKcmyk(70.4%, 87.4%, 0%, 37.6%)
CIE-LABlab(22.33, 50.94, -68.38)
CIE-LCHlch(22.33, 85.27, 306.69°)
OKLaboklab(35.37% 0.0269 -0.1975)
OKLCHoklch(35.37% 0.199 277.8)
XYZxyz(7.6784, 3.6072, 33.0858)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F149F #849F14
analogous
#143E9F #2F149F #75149F
triadic
#2F149F #9F2F14 #149F2F
tetradic
#2F149F #9F143E #849F14 #149F75
square
#2F149F #9F143E #849F14 #149F75
split-complementary
#2F149F #9F7514 #3E9F14
monochromatic
#0F0632 #1F0D69 #2F149F #3F1BD5 #6546E8

Accessibility & contrast

On white

12.20
#2F149F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F149F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F149F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F149F#FFFFFF#000000##FFFFFF
##2F149F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA3
Deuteranopia (green-blind)
#00309D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f149f;
/* rgb */ color: rgb(47, 20, 159);
/* oklch */ color: oklch(35.4% 0.199 277.8);
Tailwind
colors: {
  custom: {
    50: '#7a59bd',
    500: '#2f149f',
    950: '#000000',
  },
}
SCSS
$custom: #2f149f;
$custom-light: #7a59bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f149f",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 159
  },
  "hsl": {
    "h": 251.655,
    "s": 77.654,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3537,
    "c": 0.19928,
    "h": 277.8
  },
  "luminance": 0.03608
}

Semantic roles & 50–950 ramp

primary
#2F149F
secondary
#AFC846
accent
#F434CF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F149F

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

Preview Lab → · Contrast checker → · Palette generator →

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