#2F198C#2F198C

#2F198C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.174 H 280.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#2F198C
RGBrgb(47, 25, 140)
HSLhsl(251, 70%, 32%)
HSVhsv(251, 82%, 55%)
CMYKcmyk(66.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(20.80, 43.22, -59.17)
CIE-LCHlch(20.80, 73.27, 306.14°)
OKLaboklab(33.67% 0.0312 -0.1708)
OKLCHoklch(33.67% 0.174 280.4)
XYZxyz(6.2520, 3.1926, 25.0926)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F198C #768C19
analogous
#193D8C #2F198C #68198C
triadic
#2F198C #8C2F19 #198C2F
tetradic
#2F198C #8C193D #768C19 #198C68
square
#2F198C #8C193D #768C19 #198C68
split-complementary
#2F198C #8C6819 #3D8C19
monochromatic
#0C0624 #1E1058 #2F198C #4022C0 #6042DD

Accessibility & contrast

On white

12.82
#2F198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F198C
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F198C#FFFFFF#000000##FFFFFF
##2F198C1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f198c;
/* rgb */ color: rgb(47, 25, 140);
/* oklch */ color: oklch(33.7% 0.174 280.4);
Tailwind
colors: {
  custom: {
    50: '#765aaf',
    500: '#2f198c',
    950: '#000000',
  },
}
SCSS
$custom: #2f198c;
$custom-light: #765aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f198c",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 251.478,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33667,
    "c": 0.17364,
    "h": 280.4
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#2F198C
secondary
#A7BE43
accent
#ED3BCB
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F198C

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

Preview Lab → · Contrast checker → · Palette generator →

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