#2F164C#2F164C

#2F164C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.096 H 301.5°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2F164C
RGBrgb(47, 22, 76)
HSLhsl(268, 55%, 19%)
HSVhsv(268, 71%, 30%)
CMYKcmyk(38.2%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.83, 25.18, -28.77)
CIE-LCHlch(13.83, 38.23, 311.20°)
OKLaboklab(26.81% 0.0501 -0.0817)
OKLCHoklch(26.81% 0.096 301.5)
XYZxyz(2.7634, 1.6999, 7.0186)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F164C #334C16
analogous
#16184C #2F164C #4A164C
triadic
#2F164C #4C2F16 #164C2F
tetradic
#2F164C #4C1618 #334C16 #164C4A
square
#2F164C #4C1618 #334C16 #164C4A
split-complementary
#2F164C #4C4A16 #184C16
monochromatic
#0F0718 #12081D #2F164C #4C247B #6A31AB

Accessibility & contrast

On white

15.67
#2F164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F164C
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F164C#FFFFFF#000000##FFFFFF
##2F164C1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#03234B
Tritanopia (blue-blind)
#29222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2f164c;
/* rgb */ color: rgb(47, 22, 76);
/* oklch */ color: oklch(26.8% 0.096 301.5);
Tailwind
colors: {
  custom: {
    50: '#6a557e',
    500: '#2f164c',
    950: '#000000',
  },
}
SCSS
$custom: #2f164c;
$custom-light: #6a557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f164c",
  "rgb": {
    "r": 47,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 267.778,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26806,
    "c": 0.09585,
    "h": 301.5
  },
  "luminance": 0.017
}

Semantic roles & 50–950 ramp

primary
#2F164C
secondary
#62843A
accent
#DE4999
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2F164C

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

Preview Lab → · Contrast checker → · Palette generator →

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