#2F195F#2F195F

#2F195F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.0% C 0.117 H 291.9°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#2F195F
RGBrgb(47, 25, 95)
HSLhsl(259, 58%, 24%)
HSVhsv(259, 74%, 37%)
CMYKcmyk(50.5%, 73.7%, 0%, 62.7%)
CIE-LABlab(16.13, 29.17, -37.87)
CIE-LCHlch(16.13, 47.81, 307.61°)
OKLaboklab(28.98% 0.0436 -0.1085)
OKLCHoklch(28.98% 0.117 291.9)
XYZxyz(3.5849, 2.1257, 11.0457)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F195F #495F19
analogous
#19265F #2F195F #52195F
triadic
#2F195F #5F2F19 #195F2F
tetradic
#2F195F #5F1926 #495F19 #195F52
square
#2F195F #5F1926 #495F19 #195F52
split-complementary
#2F195F #5F5219 #265F19
monochromatic
#0C0618 #170C2F #2F195F #47268F #5F32C0

Accessibility & contrast

On white

14.73
#2F195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2F195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F195F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F195F#FFFFFF#000000##FFFFFF
##2F195F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#202B3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f195f;
/* rgb */ color: rgb(47, 25, 95);
/* oklch */ color: oklch(29.0% 0.117 291.9);
Tailwind
colors: {
  custom: {
    50: '#6d578d',
    500: '#2f195f',
    950: '#000000',
  },
}
SCSS
$custom: #2f195f;
$custom-light: #6d578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f195f",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 258.857,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2898,
    "c": 0.11693,
    "h": 291.9
  },
  "luminance": 0.02126
}

Semantic roles & 50–950 ramp

primary
#2F195F
secondary
#7A953F
accent
#E246B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F195F

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

Preview Lab → · Contrast checker → · Palette generator →

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