#2F197C#2F197C

#2F197C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.154 H 283.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2F197C
RGBrgb(47, 25, 124)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 80%, 49%)
CMYKcmyk(62.1%, 79.8%, 0%, 51.4%)
CIE-LABlab(19.03, 38.28, -51.99)
CIE-LCHlch(19.03, 64.57, 306.36°)
OKLaboklab(31.91% 0.0362 -0.1499)
OKLCHoklch(31.91% 0.154 283.6)
XYZxyz(5.1569, 2.7545, 19.3248)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F197C #667C19
analogous
#19357C #2F197C #61197C
triadic
#2F197C #7C2F19 #197C2F
tetradic
#2F197C #7C1935 #667C19 #197C61
square
#2F197C #7C1935 #667C19 #197C61
split-complementary
#2F197C #7C6119 #357C19
monochromatic
#0A0519 #1C0F49 #2F197C #4223AF #5C38D7

Accessibility & contrast

On white

13.54
#2F197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F197C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F197C#FFFFFF#000000##FFFFFF
##2F197C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f197c;
/* rgb */ color: rgb(47, 25, 124);
/* oklch */ color: oklch(31.9% 0.154 283.6);
Tailwind
colors: {
  custom: {
    50: '#7259a3',
    500: '#2f197c',
    950: '#000000',
  },
}
SCSS
$custom: #2f197c;
$custom-light: #7259a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f197c",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 253.333,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31912,
    "c": 0.15418,
    "h": 283.6
  },
  "luminance": 0.02755
}

Semantic roles & 50–950 ramp

primary
#2F197C
secondary
#98B040
accent
#E93EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F197C

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

Preview Lab → · Contrast checker → · Palette generator →

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