#2F197E#2F197E

#2F197E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.157 H 283.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2F197E
RGBrgb(47, 25, 126)
HSLhsl(253, 67%, 30%)
HSVhsv(253, 80%, 49%)
CMYKcmyk(62.7%, 80.2%, 0%, 50.6%)
CIE-LABlab(19.25, 38.91, -52.91)
CIE-LCHlch(19.25, 65.68, 306.33°)
OKLaboklab(32.13% 0.0356 -0.1526)
OKLCHoklch(32.13% 0.157 283.1)
XYZxyz(5.2846, 2.8056, 19.9977)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F197E #687E19
analogous
#19367E #2F197E #61197E
triadic
#2F197E #7E2F19 #197E2F
tetradic
#2F197E #7E1936 #687E19 #197E61
square
#2F197E #7E1936 #687E19 #197E61
split-complementary
#2F197E #7E6119 #367E19
monochromatic
#0A051A #1C0F4B #2F197E #4223B1 #5C3AD8

Accessibility & contrast

On white

13.45
#2F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F197E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F197E#FFFFFF#000000##FFFFFF
##2F197E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f197e;
/* rgb */ color: rgb(47, 25, 126);
/* oklch */ color: oklch(32.1% 0.157 283.1);
Tailwind
colors: {
  custom: {
    50: '#7359a4',
    500: '#2f197e',
    950: '#000000',
  },
}
SCSS
$custom: #2f197e;
$custom-light: #7359a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f197e",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 253.069,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32127,
    "c": 0.15665,
    "h": 283.1
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#2F197E
secondary
#99B241
accent
#EA3EC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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