#2F164F#2F164F

#2F164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.100 H 299.9°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#2F164F
RGBrgb(47, 22, 79)
HSLhsl(266, 56%, 20%)
HSVhsv(266, 72%, 31%)
CMYKcmyk(40.5%, 72.2%, 0%, 69%)
CIE-LABlab(14.07, 26.07, -30.43)
CIE-LCHlch(14.07, 40.07, 310.59°)
OKLaboklab(27.06% 0.0497 -0.0866)
OKLCHoklch(27.06% 0.1 299.9)
XYZxyz(2.8701, 1.7426, 7.5808)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F164F #364F16
analogous
#16194F #2F164F #4C164F
triadic
#2F164F #4F2F16 #164F2F
tetradic
#2F164F #4F1619 #364F16 #164F4C
square
#2F164F #4F1619 #364F16 #164F4C
split-complementary
#2F164F #4F4C16 #194F16
monochromatic
#0E0718 #13091F #2F164F #4B237F #6831AF

Accessibility & contrast

On white

15.57
#2F164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2F164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F164F
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F164F#FFFFFF#000000##FFFFFF
##2F164F1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#282330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f164f;
/* rgb */ color: rgb(47, 22, 79);
/* oklch */ color: oklch(27.1% 0.100 299.9);
Tailwind
colors: {
  custom: {
    50: '#6b5581',
    500: '#2f164f',
    950: '#000000',
  },
}
SCSS
$custom: #2f164f;
$custom-light: #6b5581;
$custom-dark: #000000;
JSON
{
  "hex": "#2f164f",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 266.316,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27062,
    "c": 0.09988,
    "h": 299.9
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#2F164F
secondary
#65863A
accent
#E0489D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F164F

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

Preview Lab → · Contrast checker → · Palette generator →

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