#2F197A#2F197A

#2F197A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.152 H 284.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2F197A
RGBrgb(47, 25, 122)
HSLhsl(254, 66%, 29%)
HSVhsv(254, 80%, 48%)
CMYKcmyk(61.5%, 79.5%, 0%, 52.2%)
CIE-LABlab(18.82, 37.66, -51.07)
CIE-LCHlch(18.82, 63.45, 306.41°)
OKLaboklab(31.7% 0.0368 -0.1472)
OKLCHoklch(31.7% 0.152 284)
XYZxyz(5.0317, 2.7044, 18.6654)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F197A #647A19
analogous
#19347A #2F197A #60197A
triadic
#2F197A #7A2F19 #197A2F
tetradic
#2F197A #7A1934 #647A19 #197A60
square
#2F197A #7A1934 #647A19 #197A60
split-complementary
#2F197A #7A6019 #347A19
monochromatic
#0A0519 #1B0F47 #2F197A #4323AD #5B37D6

Accessibility & contrast

On white

13.63
#2F197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F197A
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F197A#FFFFFF#000000##FFFFFF
##2F197A1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f197a;
/* rgb */ color: rgb(47, 25, 122);
/* oklch */ color: oklch(31.7% 0.152 284.0);
Tailwind
colors: {
  custom: {
    50: '#7259a1',
    500: '#2f197a',
    950: '#000000',
  },
}
SCSS
$custom: #2f197a;
$custom-light: #7259a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f197a",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 253.608,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.1517,
    "h": 284
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#2F197A
secondary
#96AF40
accent
#E93FC2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F197A

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

Preview Lab → · Contrast checker → · Palette generator →

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