#2F164B#2F164B

#2F164B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.095 H 302.1°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#2F164B
RGBrgb(47, 22, 75)
HSLhsl(268, 55%, 19%)
HSVhsv(268, 71%, 29%)
CMYKcmyk(37.3%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.75, 24.89, -28.21)
CIE-LCHlch(13.75, 37.62, 311.43°)
OKLaboklab(26.72% 0.0502 -0.0801)
OKLCHoklch(26.72% 0.095 302.1)
XYZxyz(2.7289, 1.6861, 6.8369)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F164B #324B16
analogous
#16184B #2F164B #4A164B
triadic
#2F164B #4B2F16 #164B2F
tetradic
#2F164B #4B1618 #324B16 #164B4A
square
#2F164B #4B1618 #324B16 #164B4A
split-complementary
#2F164B #4B4A16 #184B16
monochromatic
#0F0718 #11081C #2F164B #4D247A #6A32AA

Accessibility & contrast

On white

15.70
#2F164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F164B
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F164B#FFFFFF#000000##FFFFFF
##2F164B1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#04234A
Tritanopia (blue-blind)
#29222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f164b;
/* rgb */ color: rgb(47, 22, 75);
/* oklch */ color: oklch(26.7% 0.095 302.1);
Tailwind
colors: {
  custom: {
    50: '#6a557e',
    500: '#2f164b',
    950: '#000000',
  },
}
SCSS
$custom: #2f164b;
$custom-light: #6a557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f164b",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 268.302,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26721,
    "c": 0.0945,
    "h": 302.1
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#2F164B
secondary
#60833A
accent
#DE4A98
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F164B

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

Preview Lab → · Contrast checker → · Palette generator →

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