#2F148F#2F148F

#2F148F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.181 H 280.4°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#2F148F
RGBrgb(47, 20, 143)
HSLhsl(253, 75%, 32%)
HSVhsv(253, 86%, 56%)
CMYKcmyk(67.1%, 86%, 0%, 43.9%)
CIE-LABlab(20.39, 46.34, -61.72)
CIE-LCHlch(20.39, 77.18, 306.90°)
OKLaboklab(33.49% 0.0326 -0.1781)
OKLCHoklch(33.49% 0.181 280.4)
XYZxyz(6.3788, 3.0873, 26.2410)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F148F #748F14
analogous
#14368F #2F148F #6D148F
triadic
#2F148F #8F2F14 #148F2F
tetradic
#2F148F #8F1436 #748F14 #148F6D
square
#2F148F #8F1436 #748F14 #148F6D
split-complementary
#2F148F #8F6D14 #368F14
monochromatic
#0C0524 #1D0C59 #2F148F #411CC5 #5F3AE3

Accessibility & contrast

On white

12.98
#2F148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F148F
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F148F#FFFFFF#000000##FFFFFF
##2F148F1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f148f;
/* rgb */ color: rgb(47, 20, 143);
/* oklch */ color: oklch(33.5% 0.181 280.4);
Tailwind
colors: {
  custom: {
    50: '#7758b1',
    500: '#2f148f',
    950: '#000000',
  },
}
SCSS
$custom: #2f148f;
$custom-light: #7758b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f148f",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 253.171,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33487,
    "c": 0.18109,
    "h": 280.4
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#2F148F
secondary
#A5C33C
accent
#F236C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F148F

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

Preview Lab → · Contrast checker → · Palette generator →

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