#2F198F#2F198F

#2F198F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.177 H 279.8°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#2F198F
RGBrgb(47, 25, 143)
HSLhsl(251, 70%, 33%)
HSVhsv(251, 83%, 56%)
CMYKcmyk(67.1%, 82.5%, 0%, 43.9%)
CIE-LABlab(21.14, 44.13, -60.48)
CIE-LCHlch(21.14, 74.87, 306.12°)
OKLaboklab(34% 0.0303 -0.1746)
OKLCHoklch(34% 0.177 279.8)
XYZxyz(6.4763, 3.2822, 26.2735)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F198F #798F19
analogous
#193E8F #2F198F #6A198F
triadic
#2F198F #8F2F19 #198F2F
tetradic
#2F198F #8F193E #798F19 #198F6A
square
#2F198F #8F193E #798F19 #198F6A
split-complementary
#2F198F #8F6A19 #3E8F19
monochromatic
#0D0727 #1E105B #2F198F #4022C3 #6144DE

Accessibility & contrast

On white

12.68
#2F198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2F198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F198F
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F198F#FFFFFF#000000##FFFFFF
##2F198F1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2f198f;
/* rgb */ color: rgb(47, 25, 143);
/* oklch */ color: oklch(34.0% 0.177 279.8);
Tailwind
colors: {
  custom: {
    50: '#765ab1',
    500: '#2f198f',
    950: '#000000',
  },
}
SCSS
$custom: #2f198f;
$custom-light: #765ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f198f",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 251.186,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34003,
    "c": 0.17721,
    "h": 279.8
  },
  "luminance": 0.03283
}

Semantic roles & 50–950 ramp

primary
#2F198F
secondary
#A8BF44
accent
#ED3BCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F198F

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

Preview Lab → · Contrast checker → · Palette generator →

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