#2F199C#2F199C

#2F199C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.192 H 277.8°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2F199C
RGBrgb(47, 25, 156)
HSLhsl(250, 72%, 35%)
HSVhsv(250, 84%, 61%)
CMYKcmyk(69.9%, 84%, 0%, 38.8%)
CIE-LABlab(22.65, 48.04, -66.00)
CIE-LCHlch(22.65, 81.63, 306.05°)
OKLaboklab(35.49% 0.0261 -0.1907)
OKLCHoklch(35.49% 0.192 277.8)
XYZxyz(7.5187, 3.6992, 31.7638)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F199C #869C19
analogous
#19459C #2F199C #70199C
triadic
#2F199C #9C2F19 #199C2F
tetradic
#2F199C #9C1945 #869C19 #199C70
square
#2F199C #9C1945 #869C19 #199C70
split-complementary
#2F199C #9C7019 #459C19
monochromatic
#0F0833 #1F1167 #2F199C #3F21D1 #664DE2

Accessibility & contrast

On white

12.07
#2F199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2F199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F199C
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F199C#FFFFFF#000000##FFFFFF
##2F199C1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA0
Deuteranopia (green-blind)
#00319A
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f199c;
/* rgb */ color: rgb(47, 25, 156);
/* oklch */ color: oklch(35.5% 0.192 277.8);
Tailwind
colors: {
  custom: {
    50: '#795bbb',
    500: '#2f199c',
    950: '#000000',
  },
}
SCSS
$custom: #2f199c;
$custom-light: #795bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f199c",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 250.076,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35487,
    "c": 0.19245,
    "h": 277.8
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#2F199C
secondary
#B0C44C
accent
#EF39D0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F199C

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

Preview Lab → · Contrast checker → · Palette generator →

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