#2C164B#2C164B

#2C164B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.094 H 298.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#2C164B
RGBrgb(44, 22, 75)
HSLhsl(265, 55%, 19%)
HSVhsv(265, 71%, 29%)
CMYKcmyk(41.3%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.34, 24.12, -28.89)
CIE-LCHlch(13.34, 37.64, 309.86°)
OKLaboklab(26.33% 0.0453 -0.0822)
OKLCHoklch(26.33% 0.094 298.9)
XYZxyz(2.5953, 1.6173, 6.8307)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C164B #354B16
analogous
#161B4B #2C164B #47164B
triadic
#2C164B #4B2C16 #164B2C
tetradic
#2C164B #4B161B #354B16 #164B47
square
#2C164B #4B161B #354B16 #164B47
split-complementary
#2C164B #4B4716 #1B4B16
monochromatic
#0E0718 #10081C #2C164B #48247A #6432AA

Accessibility & contrast

On white

15.87
#2C164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C164B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C164B
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C164B#FFFFFF#000000##FFFFFF
##2C164B1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00224A
Tritanopia (blue-blind)
#25222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c164b;
/* rgb */ color: rgb(44, 22, 75);
/* oklch */ color: oklch(26.3% 0.094 298.9);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2c164b',
    950: '#000000',
  },
}
SCSS
$custom: #2c164b;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c164b",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 264.906,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26332,
    "c": 0.09389,
    "h": 298.9
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#2C164B
secondary
#65833A
accent
#DE4AA0
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C164B

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

Preview Lab → · Contrast checker → · Palette generator →

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