#2F164D#2F164D

#2F164D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.097 H 300.9°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#2F164D
RGBrgb(47, 22, 77)
HSLhsl(267, 56%, 19%)
HSVhsv(267, 71%, 30%)
CMYKcmyk(39%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.91, 25.48, -29.32)
CIE-LCHlch(13.91, 38.84, 310.99°)
OKLaboklab(26.89% 0.05 -0.0834)
OKLCHoklch(26.89% 0.097 300.9)
XYZxyz(2.7984, 1.7140, 7.2031)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F164D #344D16
analogous
#16184D #2F164D #4B164D
triadic
#2F164D #4D2F16 #164D2F
tetradic
#2F164D #4D1618 #344D16 #164D4B
square
#2F164D #4D1618 #344D16 #164D4B
split-complementary
#2F164D #4D4B16 #184D16
monochromatic
#0F0718 #12081D #2F164D #4C247D #6931AC

Accessibility & contrast

On white

15.64
#2F164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2F164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F164D
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F164D#FFFFFF#000000##FFFFFF
##2F164D1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#01234C
Tritanopia (blue-blind)
#29222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f164d;
/* rgb */ color: rgb(47, 22, 77);
/* oklch */ color: oklch(26.9% 0.097 300.9);
Tailwind
colors: {
  custom: {
    50: '#6a557f',
    500: '#2f164d',
    950: '#000000',
  },
}
SCSS
$custom: #2f164d;
$custom-light: #6a557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f164d",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 267.273,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.2689,
    "c": 0.09719,
    "h": 300.9
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#2F164D
secondary
#63853A
accent
#DF499B
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F164D

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

Preview Lab → · Contrast checker → · Palette generator →

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