#2F195D#2F195D

#2F195D is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.114 H 292.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#2F195D
RGBrgb(47, 25, 93)
HSLhsl(259, 58%, 23%)
HSVhsv(259, 73%, 36%)
CMYKcmyk(49.5%, 73.1%, 0%, 63.5%)
CIE-LABlab(15.95, 28.55, -36.84)
CIE-LCHlch(15.95, 46.60, 307.77°)
OKLaboklab(28.79% 0.0439 -0.1055)
OKLCHoklch(28.79% 0.114 292.6)
XYZxyz(3.4952, 2.0898, 10.5730)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F195D #475D19
analogous
#19255D #2F195D #51195D
triadic
#2F195D #5D2F19 #195D2F
tetradic
#2F195D #5D1925 #475D19 #195D51
square
#2F195D #5D1925 #475D19 #195D51
split-complementary
#2F195D #5D5119 #255D19
monochromatic
#0C0618 #170C2D #2F195D #47268D #6033BD

Accessibility & contrast

On white

14.81
#2F195D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2F195D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F195D
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F195D#FFFFFF#000000##FFFFFF
##2F195D1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#212A38
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2f195d;
/* rgb */ color: rgb(47, 25, 93);
/* oklch */ color: oklch(28.8% 0.114 292.6);
Tailwind
colors: {
  custom: {
    50: '#6c578c',
    500: '#2f195d',
    950: '#000000',
  },
}
SCSS
$custom: #2f195d;
$custom-light: #6c578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2f195d",
  "rgb": {
    "r": 47,
    "g": 25,
    "b": 93
  },
  "hsl": {
    "h": 259.412,
    "s": 57.627,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28793,
    "c": 0.11426,
    "h": 292.6
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#2F195D
secondary
#78933F
accent
#E147AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F195D

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

Preview Lab → · Contrast checker → · Palette generator →

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