#2F186A#2F186A

#2F186A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.133 H 288.5°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2F186A
RGBrgb(47, 24, 106)
HSLhsl(257, 63%, 25%)
HSVhsv(257, 77%, 42%)
CMYKcmyk(55.7%, 77.4%, 0%, 58.4%)
CIE-LABlab(16.98, 33.20, -43.75)
CIE-LCHlch(16.98, 54.92, 307.19°)
OKLaboklab(29.9% 0.042 -0.1257)
OKLCHoklch(29.9% 0.133 288.5)
XYZxyz(4.0997, 2.2980, 13.8604)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F186A #536A18
analogous
#182A6A #2F186A #58186A
triadic
#2F186A #6A2F18 #186A2F
tetradic
#2F186A #6A182A #536A18 #186A58
square
#2F186A #6A182A #536A18 #186A58
split-complementary
#2F186A #6A5818 #2A6A18
monochromatic
#0B0619 #190D38 #2F186A #45239C #5B2FCE

Accessibility & contrast

On white

14.39
#2F186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2F186A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F186A
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F186A#FFFFFF#000000##FFFFFF
##2F186A1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f186a;
/* rgb */ color: rgb(47, 24, 106);
/* oklch */ color: oklch(29.9% 0.133 288.5);
Tailwind
colors: {
  custom: {
    50: '#6f5795',
    500: '#2f186a',
    950: '#000000',
  },
}
SCSS
$custom: #2f186a;
$custom-light: #6f5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2f186a",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 256.829,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29905,
    "c": 0.13259,
    "h": 288.5
  },
  "luminance": 0.02298
}

Semantic roles & 50–950 ramp

primary
#2F186A
secondary
#84A03E
accent
#E642B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F186A

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

Preview Lab → · Contrast checker → · Palette generator →

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