#2F176D#2F176D

#2F176D is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.138 H 287.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2F176D
RGBrgb(47, 23, 109)
HSLhsl(257, 65%, 26%)
HSVhsv(257, 79%, 43%)
CMYKcmyk(56.9%, 78.9%, 0%, 57.3%)
CIE-LABlab(17.09, 34.68, -45.53)
CIE-LCHlch(17.09, 57.23, 307.30°)
OKLaboklab(30.08% 0.0421 -0.1309)
OKLCHoklch(30.08% 0.138 287.8)
XYZxyz(4.2382, 2.3210, 14.6897)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F176D #556D17
analogous
#172A6D #2F176D #5A176D
triadic
#2F176D #6D2F17 #176D2F
tetradic
#2F176D #6D172A #556D17 #176D5A
square
#2F176D #6D172A #556D17 #176D5A
split-complementary
#2F176D #6D5A17 #2A6D17
monochromatic
#0B0519 #190C3A #2F176D #4522A0 #5B2CD2

Accessibility & contrast

On white

14.34
#2F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F176D
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F176D#FFFFFF#000000##FFFFFF
##2F176D1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6F
Deuteranopia (green-blind)
#00286B
Tritanopia (blue-blind)
#152F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2f176d;
/* rgb */ color: rgb(47, 23, 109);
/* oklch */ color: oklch(30.1% 0.138 287.8);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2f176d',
    950: '#000000',
  },
}
SCSS
$custom: #2f176d;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2f176d",
  "rgb": {
    "r": 47,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 256.744,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30075,
    "c": 0.13755,
    "h": 287.8
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#2F176D
secondary
#86A33D
accent
#E840B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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