#2F185F#2F185F

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

Color values

HEX#2F185F
RGBrgb(47, 24, 95)
HSLhsl(259, 60%, 23%)
HSVhsv(259, 75%, 37%)
CMYKcmyk(50.5%, 74.7%, 0%, 62.7%)
CIE-LABlab(15.92, 29.76, -38.22)
CIE-LCHlch(15.92, 48.44, 307.91°)
OKLaboklab(28.83% 0.0446 -0.1095)
OKLCHoklch(28.83% 0.118 292.2)
XYZxyz(3.5639, 2.0837, 11.0387)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185F #485F18
analogous
#18245F #2F185F #52185F
triadic
#2F185F #5F2F18 #185F2F
tetradic
#2F185F #5F1824 #485F18 #185F52
square
#2F185F #5F1824 #485F18 #185F52
split-complementary
#2F185F #5F5218 #245F18
monochromatic
#0C0618 #170C2E #2F185F #472490 #5F31C1

Accessibility & contrast

On white

14.82
#2F185F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F185F
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185F#FFFFFF#000000##FFFFFF
##2F185F1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f185f;
/* rgb */ color: rgb(47, 24, 95);
/* oklch */ color: oklch(28.8% 0.118 292.2);
Tailwind
colors: {
  custom: {
    50: '#6d578d',
    500: '#2f185f',
    950: '#000000',
  },
}
SCSS
$custom: #2f185f;
$custom-light: #6d578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185f",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 95
  },
  "hsl": {
    "h": 259.437,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28828,
    "c": 0.11828,
    "h": 292.2
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#2F185F
secondary
#79953D
accent
#E345B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F185F

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

Preview Lab → · Contrast checker → · Palette generator →

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