#2F196D#2F196D

#2F196D is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.135 H 287.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2F196D
RGBrgb(47, 25, 109)
HSLhsl(256, 63%, 26%)
HSVhsv(256, 77%, 43%)
CMYKcmyk(56.9%, 77.1%, 0%, 57.3%)
CIE-LABlab(17.48, 33.58, -44.89)
CIE-LCHlch(17.48, 56.06, 306.80°)
OKLaboklab(30.35% 0.0404 -0.1291)
OKLCHoklch(30.35% 0.135 287.4)
XYZxyz(4.2794, 2.4035, 14.7035)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F196D #576D19
analogous
#192D6D #2F196D #59196D
triadic
#2F196D #6D2F19 #196D2F
tetradic
#2F196D #6D192D #576D19 #196D59
square
#2F196D #6D192D #576D19 #196D59
split-complementary
#2F196D #6D5919 #2D6D19
monochromatic
#0B0619 #1A0E3B #2F196D #44249F #5A31D0

Accessibility & contrast

On white

14.18
#2F196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F196D
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F196D#FFFFFF#000000##FFFFFF
##2F196D1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#153041
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f196d;
/* rgb */ color: rgb(47, 25, 109);
/* oklch */ color: oklch(30.3% 0.135 287.4);
Tailwind
colors: {
  custom: {
    50: '#6f5898',
    500: '#2f196d',
    950: '#000000',
  },
}
SCSS
$custom: #2f196d;
$custom-light: #6f5898;
$custom-dark: #000000;
JSON
{
  "hex": "#2f196d",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 255.714,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30348,
    "c": 0.13527,
    "h": 287.4
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#2F196D
secondary
#88A23F
accent
#E642BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F196D

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

Preview Lab → · Contrast checker → · Palette generator →

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