#2F196B#2F196B

#2F196B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.133 H 287.9°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#2F196B
RGBrgb(47, 25, 107)
HSLhsl(256, 62%, 26%)
HSVhsv(256, 77%, 42%)
CMYKcmyk(56.1%, 76.6%, 0%, 58%)
CIE-LABlab(17.28, 32.95, -43.91)
CIE-LCHlch(17.28, 54.90, 306.88°)
OKLaboklab(30.15% 0.0409 -0.1262)
OKLCHoklch(30.15% 0.133 287.9)
XYZxyz(4.1730, 2.3609, 14.1429)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F196B #556B19
analogous
#192C6B #2F196B #58196B
triadic
#2F196B #6B2F19 #196B2F
tetradic
#2F196B #6B192C #556B19 #196B58
square
#2F196B #6B192C #556B19 #196B58
split-complementary
#2F196B #6B5819 #2C6B19
monochromatic
#0B0619 #190D39 #2F196B #45259D #5B30CE

Accessibility & contrast

On white

14.26
#2F196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F196B
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F196B#FFFFFF#000000##FFFFFF
##2F196B1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002869
Tritanopia (blue-blind)
#172F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f196b;
/* rgb */ color: rgb(47, 25, 107);
/* oklch */ color: oklch(30.1% 0.133 287.9);
Tailwind
colors: {
  custom: {
    50: '#6f5896',
    500: '#2f196b',
    950: '#000000',
  },
}
SCSS
$custom: #2f196b;
$custom-light: #6f5896;
$custom-dark: #000000;
JSON
{
  "hex": "#2f196b",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 256.098,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30146,
    "c": 0.13269,
    "h": 287.9
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#2F196B
secondary
#86A13F
accent
#E543BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F196B

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

Preview Lab → · Contrast checker → · Palette generator →

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