#2F196A#2F196A

#2F196A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.131 H 288.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#2F196A
RGBrgb(47, 25, 106)
HSLhsl(256, 62%, 26%)
HSVhsv(256, 76%, 42%)
CMYKcmyk(55.7%, 76.4%, 0%, 58.4%)
CIE-LABlab(17.18, 32.64, -43.42)
CIE-LCHlch(17.18, 54.32, 306.93°)
OKLaboklab(30.05% 0.0411 -0.1248)
OKLCHoklch(30.05% 0.131 288.2)
XYZxyz(4.1207, 2.3400, 13.8674)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F196A #546A19
analogous
#192B6A #2F196A #57196A
triadic
#2F196A #6A2F19 #196A2F
tetradic
#2F196A #6A192B #546A19 #196A57
square
#2F196A #6A192B #546A19 #196A57
split-complementary
#2F196A #6A5719 #2B6A19
monochromatic
#0B0619 #190D38 #2F196A #45259C #5B30CD

Accessibility & contrast

On white

14.31
#2F196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2F196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F196A
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F196A#FFFFFF#000000##FFFFFF
##2F196A1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002868
Tritanopia (blue-blind)
#182F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f196a;
/* rgb */ color: rgb(47, 25, 106);
/* oklch */ color: oklch(30.0% 0.131 288.2);
Tailwind
colors: {
  custom: {
    50: '#6f5895',
    500: '#2f196a',
    950: '#000000',
  },
}
SCSS
$custom: #2f196a;
$custom-light: #6f5895;
$custom-dark: #000000;
JSON
{
  "hex": "#2f196a",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 256.296,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30046,
    "c": 0.1314,
    "h": 288.2
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#2F196A
secondary
#85A03F
accent
#E543B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F196A

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

Preview Lab → · Contrast checker → · Palette generator →

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