#2F199D#2F199D

#2F199D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.194 H 277.7°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2F199D
RGBrgb(47, 25, 157)
HSLhsl(250, 73%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(70.1%, 84.1%, 0%, 38.4%)
CIE-LABlab(22.77, 48.34, -66.42)
CIE-LCHlch(22.77, 82.15, 306.04°)
OKLaboklab(35.6% 0.0258 -0.1919)
OKLCHoklch(35.6% 0.194 277.7)
XYZxyz(7.6038, 3.7332, 32.2116)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F199D #879D19
analogous
#19459D #2F199D #71199D
triadic
#2F199D #9D2F19 #199D2F
tetradic
#2F199D #9D1945 #879D19 #199D71
square
#2F199D #9D1945 #879D19 #199D71
split-complementary
#2F199D #9D7119 #459D19
monochromatic
#0F0833 #1F1168 #2F199D #3F21D2 #664EE3

Accessibility & contrast

On white

12.02
#2F199D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F199D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F199D
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F199D#FFFFFF#000000##FFFFFF
##2F199D1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f199d;
/* rgb */ color: rgb(47, 25, 157);
/* oklch */ color: oklch(35.6% 0.194 277.7);
Tailwind
colors: {
  custom: {
    50: '#795bbb',
    500: '#2f199d',
    950: '#000000',
  },
}
SCSS
$custom: #2f199d;
$custom-light: #795bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f199d",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 157
  },
  "hsl": {
    "h": 250,
    "s": 72.527,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35603,
    "c": 0.1936,
    "h": 277.7
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#2F199D
secondary
#B1C54D
accent
#EF39D1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F199D

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

Preview Lab → · Contrast checker → · Palette generator →

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