#2F196C#2F196C

#2F196C is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.134 H 287.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2F196C
RGBrgb(47, 25, 108)
HSLhsl(256, 62%, 26%)
HSVhsv(256, 77%, 42%)
CMYKcmyk(56.5%, 76.9%, 0%, 57.6%)
CIE-LABlab(17.38, 33.27, -44.40)
CIE-LCHlch(17.38, 55.48, 306.84°)
OKLaboklab(30.25% 0.0406 -0.1277)
OKLCHoklch(30.25% 0.134 287.7)
XYZxyz(4.2259, 2.3821, 14.4216)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F196C #566C19
analogous
#192C6C #2F196C #58196C
triadic
#2F196C #6C2F19 #196C2F
tetradic
#2F196C #6C192C #566C19 #196C58
square
#2F196C #6C192C #566C19 #196C58
split-complementary
#2F196C #6C5819 #2C6C19
monochromatic
#0B0619 #190D3A #2F196C #45259E #5A30CF

Accessibility & contrast

On white

14.22
#2F196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2F196C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F196C
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F196C#FFFFFF#000000##FFFFFF
##2F196C1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00286A
Tritanopia (blue-blind)
#162F41
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f196c;
/* rgb */ color: rgb(47, 25, 108);
/* oklch */ color: oklch(30.2% 0.134 287.7);
Tailwind
colors: {
  custom: {
    50: '#6f5897',
    500: '#2f196c',
    950: '#000000',
  },
}
SCSS
$custom: #2f196c;
$custom-light: #6f5897;
$custom-dark: #000000;
JSON
{
  "hex": "#2f196c",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 255.904,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30247,
    "c": 0.13399,
    "h": 287.7
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#2F196C
secondary
#87A13F
accent
#E542BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F196C

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

Preview Lab → · Contrast checker → · Palette generator →

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