#2F197D#2F197D

#2F197D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.155 H 283.3°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2F197D
RGBrgb(47, 25, 125)
HSLhsl(253, 67%, 29%)
HSVhsv(253, 80%, 49%)
CMYKcmyk(62.4%, 80%, 0%, 51%)
CIE-LABlab(19.14, 38.60, -52.45)
CIE-LCHlch(19.14, 65.12, 306.35°)
OKLaboklab(32.02% 0.0359 -0.1512)
OKLCHoklch(32.02% 0.155 283.3)
XYZxyz(5.2204, 2.7799, 19.6595)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F197D #677D19
analogous
#19357D #2F197D #61197D
triadic
#2F197D #7D2F19 #197D2F
tetradic
#2F197D #7D1935 #677D19 #197D61
square
#2F197D #7D1935 #677D19 #197D61
split-complementary
#2F197D #7D6119 #357D19
monochromatic
#0A051A #1C0F4A #2F197D #4223B0 #5C39D7

Accessibility & contrast

On white

13.50
#2F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F197D
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F197D#FFFFFF#000000##FFFFFF
##2F197D1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002B7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f197d;
/* rgb */ color: rgb(47, 25, 125);
/* oklch */ color: oklch(32.0% 0.155 283.3);
Tailwind
colors: {
  custom: {
    50: '#7259a4',
    500: '#2f197d',
    950: '#000000',
  },
}
SCSS
$custom: #2f197d;
$custom-light: #7259a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f197d",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 253.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32019,
    "c": 0.15543,
    "h": 283.3
  },
  "luminance": 0.0278
}

Semantic roles & 50–950 ramp

primary
#2F197D
secondary
#98B140
accent
#EA3EC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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