#2F197B#2F197B

#2F197B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.153 H 283.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2F197B
RGBrgb(47, 25, 123)
HSLhsl(253, 66%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(61.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(18.93, 37.97, -51.53)
CIE-LCHlch(18.93, 64.01, 306.39°)
OKLaboklab(31.81% 0.0365 -0.1485)
OKLCHoklch(31.81% 0.153 283.8)
XYZxyz(5.0940, 2.7293, 18.9934)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F197B #657B19
analogous
#19347B #2F197B #60197B
triadic
#2F197B #7B2F19 #197B2F
tetradic
#2F197B #7B1934 #657B19 #197B60
square
#2F197B #7B1934 #657B19 #197B60
split-complementary
#2F197B #7B6019 #347B19
monochromatic
#0A0519 #1C0F48 #2F197B #4223AE #5B38D7

Accessibility & contrast

On white

13.58
#2F197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F197B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F197B#FFFFFF#000000##FFFFFF
##2F197B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f197b;
/* rgb */ color: rgb(47, 25, 123);
/* oklch */ color: oklch(31.8% 0.153 283.8);
Tailwind
colors: {
  custom: {
    50: '#7259a2',
    500: '#2f197b',
    950: '#000000',
  },
}
SCSS
$custom: #2f197b;
$custom-light: #7259a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f197b",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 253.469,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.15294,
    "h": 283.8
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#2F197B
secondary
#97AF40
accent
#E93FC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2F197B

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

Preview Lab → · Contrast checker → · Palette generator →

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