#2F164A#2F164A

#2F164A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.093 H 302.6°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#2F164A
RGBrgb(47, 22, 74)
HSLhsl(269, 54%, 19%)
HSVhsv(269, 70%, 29%)
CMYKcmyk(36.5%, 70.3%, 0%, 71%)
CIE-LABlab(13.67, 24.60, -27.65)
CIE-LCHlch(13.67, 37.00, 311.66°)
OKLaboklab(26.64% 0.0502 -0.0785)
OKLCHoklch(26.64% 0.093 302.6)
XYZxyz(2.6949, 1.6726, 6.6581)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F164A #314A16
analogous
#16174A #2F164A #49164A
triadic
#2F164A #4A2F16 #164A2F
tetradic
#2F164A #4A1617 #314A16 #164A49
square
#2F164A #4A1617 #314A16 #164A49
split-complementary
#2F164A #4A4916 #174A16
monochromatic
#0F0718 #11081B #2F164A #4D2479 #6B32A8

Accessibility & contrast

On white

15.74
#2F164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2F164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F164A
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F164A#FFFFFF#000000##FFFFFF
##2F164A1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#062349
Tritanopia (blue-blind)
#2A212D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f164a;
/* rgb */ color: rgb(47, 22, 74);
/* oklch */ color: oklch(26.6% 0.093 302.6);
Tailwind
colors: {
  custom: {
    50: '#6a557d',
    500: '#2f164a',
    950: '#000000',
  },
}
SCSS
$custom: #2f164a;
$custom-light: #6a557d;
$custom-dark: #000000;
JSON
{
  "hex": "#2f164a",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 268.846,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26638,
    "c": 0.09316,
    "h": 302.6
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#2F164A
secondary
#5F823A
accent
#DE4A97
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#070309
muted
#7A787B

Preview Lab

Preview with #2F164A

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

Preview Lab → · Contrast checker → · Palette generator →

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