#2F198D#2F198D

#2F198D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.175 H 280.2°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#2F198D
RGBrgb(47, 25, 141)
HSLhsl(251, 70%, 33%)
HSVhsv(251, 82%, 55%)
CMYKcmyk(66.7%, 82.3%, 0%, 44.7%)
CIE-LABlab(20.91, 43.52, -59.61)
CIE-LCHlch(20.91, 73.81, 306.13°)
OKLaboklab(33.78% 0.0309 -0.1721)
OKLCHoklch(33.78% 0.175 280.2)
XYZxyz(6.3261, 3.2222, 25.4827)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F198D #778D19
analogous
#193D8D #2F198D #69198D
triadic
#2F198D #8D2F19 #198D2F
tetradic
#2F198D #8D193D #778D19 #198D69
square
#2F198D #8D193D #778D19 #198D69
split-complementary
#2F198D #8D6919 #3D8D19
monochromatic
#0C0725 #1E1059 #2F198D #4022C1 #6043DE

Accessibility & contrast

On white

12.77
#2F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F198D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F198D#FFFFFF#000000##FFFFFF
##2F198D1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f198d;
/* rgb */ color: rgb(47, 25, 141);
/* oklch */ color: oklch(33.8% 0.175 280.2);
Tailwind
colors: {
  custom: {
    50: '#765ab0',
    500: '#2f198d',
    950: '#000000',
  },
}
SCSS
$custom: #2f198d;
$custom-light: #765ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f198d",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 251.379,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33779,
    "c": 0.17483,
    "h": 280.2
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#2F198D
secondary
#A7BF43
accent
#ED3BCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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