#2F198A#2F198A

#2F198A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.171 H 280.7°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#2F198A
RGBrgb(47, 25, 138)
HSLhsl(252, 69%, 32%)
HSVhsv(252, 82%, 54%)
CMYKcmyk(65.9%, 81.9%, 0%, 45.9%)
CIE-LABlab(20.57, 42.61, -58.30)
CIE-LCHlch(20.57, 72.21, 306.16°)
OKLaboklab(33.44% 0.0319 -0.1682)
OKLCHoklch(33.44% 0.171 280.7)
XYZxyz(6.1059, 3.1341, 24.3230)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F198A #748A19
analogous
#193C8A #2F198A #67198A
triadic
#2F198A #8A2F19 #198A2F
tetradic
#2F198A #8A193C #748A19 #198A67
square
#2F198A #8A193C #748A19 #198A67
split-complementary
#2F198A #8A6719 #3C8A19
monochromatic
#0C0622 #1D1056 #2F198A #4122BE #5F41DD

Accessibility & contrast

On white

12.91
#2F198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F198A
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F198A#FFFFFF#000000##FFFFFF
##2F198A1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358D
Deuteranopia (green-blind)
#002D88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f198a;
/* rgb */ color: rgb(47, 25, 138);
/* oklch */ color: oklch(33.4% 0.171 280.7);
Tailwind
colors: {
  custom: {
    50: '#755aad',
    500: '#2f198a',
    950: '#000000',
  },
}
SCSS
$custom: #2f198a;
$custom-light: #755aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f198a",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 251.681,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33443,
    "c": 0.17124,
    "h": 280.7
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#2F198A
secondary
#A5BD42
accent
#EC3CCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F198A

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

Preview Lab → · Contrast checker → · Palette generator →

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