#2F198B#2F198B

#2F198B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.172 H 280.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#2F198B
RGBrgb(47, 25, 139)
HSLhsl(252, 70%, 32%)
HSVhsv(252, 82%, 55%)
CMYKcmyk(66.2%, 82%, 0%, 45.5%)
CIE-LABlab(20.69, 42.91, -58.73)
CIE-LCHlch(20.69, 72.74, 306.15°)
OKLaboklab(33.56% 0.0315 -0.1695)
OKLCHoklch(33.56% 0.172 280.5)
XYZxyz(6.1786, 3.1632, 24.7061)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F198B #758B19
analogous
#193C8B #2F198B #68198B
triadic
#2F198B #8B2F19 #198B2F
tetradic
#2F198B #8B193C #758B19 #198B68
square
#2F198B #8B193C #758B19 #198B68
split-complementary
#2F198B #8B6819 #3C8B19
monochromatic
#0C0623 #1D1057 #2F198B #4122BF #5F41DD

Accessibility & contrast

On white

12.86
#2F198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F198B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F198B#FFFFFF#000000##FFFFFF
##2F198B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f198b;
/* rgb */ color: rgb(47, 25, 139);
/* oklch */ color: oklch(33.6% 0.172 280.5);
Tailwind
colors: {
  custom: {
    50: '#755aae',
    500: '#2f198b',
    950: '#000000',
  },
}
SCSS
$custom: #2f198b;
$custom-light: #755aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f198b",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 251.579,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.17244,
    "h": 280.5
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#2F198B
secondary
#A6BE42
accent
#EC3BCA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #2F198B

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

Preview Lab → · Contrast checker → · Palette generator →

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