#2F196F#2F196F

#2F196F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.138 H 286.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2F196F
RGBrgb(47, 25, 111)
HSLhsl(255, 63%, 27%)
HSVhsv(255, 77%, 44%)
CMYKcmyk(57.7%, 77.5%, 0%, 56.5%)
CIE-LABlab(17.68, 34.21, -45.86)
CIE-LCHlch(17.68, 57.21, 306.72°)
OKLaboklab(30.55% 0.0398 -0.132)
OKLCHoklch(30.55% 0.138 286.8)
XYZxyz(4.3883, 2.4471, 15.2769)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F196F #596F19
analogous
#192E6F #2F196F #5A196F
triadic
#2F196F #6F2F19 #196F2F
tetradic
#2F196F #6F192E #596F19 #196F5A
square
#2F196F #6F192E #596F19 #196F5A
split-complementary
#2F196F #6F5A19 #2E6F19
monochromatic
#0B0619 #1A0E3D #2F196F #4424A1 #5A32D1

Accessibility & contrast

On white

14.10
#2F196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2F196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F196F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F196F#FFFFFF#000000##FFFFFF
##2F196F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#133142
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2f196f;
/* rgb */ color: rgb(47, 25, 111);
/* oklch */ color: oklch(30.6% 0.138 286.8);
Tailwind
colors: {
  custom: {
    50: '#705899',
    500: '#2f196f',
    950: '#000000',
  },
}
SCSS
$custom: #2f196f;
$custom-light: #705899;
$custom-dark: #000000;
JSON
{
  "hex": "#2f196f",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 255.349,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30551,
    "c": 0.13784,
    "h": 286.8
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#2F196F
secondary
#8BA43F
accent
#E642BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F196F

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

Preview Lab → · Contrast checker → · Palette generator →

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