#2C164F#2C164F

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

Color values

HEX#2C164F
RGBrgb(44, 22, 79)
HSLhsl(263, 56%, 20%)
HSVhsv(263, 72%, 31%)
CMYKcmyk(44.3%, 72.2%, 0%, 69%)
CIE-LABlab(13.67, 25.35, -31.09)
CIE-LCHlch(13.67, 40.12, 309.18°)
OKLaboklab(26.68% 0.0449 -0.0887)
OKLCHoklch(26.68% 0.099 296.8)
XYZxyz(2.7365, 1.6738, 7.5745)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C164F #394F16
analogous
#161C4F #2C164F #49164F
triadic
#2C164F #4F2C16 #164F2C
tetradic
#2C164F #4F161C #394F16 #164F49
square
#2C164F #4F161C #394F16 #164F49
split-complementary
#2C164F #4F4916 #1C4F16
monochromatic
#0D0718 #11091F #2C164F #47237F #6131AF

Accessibility & contrast

On white

15.73
#2C164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C164F
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C164F#FFFFFF#000000##FFFFFF
##2C164F1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#232330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c164f;
/* rgb */ color: rgb(44, 22, 79);
/* oklch */ color: oklch(26.7% 0.099 296.8);
Tailwind
colors: {
  custom: {
    50: '#695581',
    500: '#2c164f',
    950: '#000000',
  },
}
SCSS
$custom: #2c164f;
$custom-light: #695581;
$custom-dark: #000000;
JSON
{
  "hex": "#2c164f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 263.158,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26683,
    "c": 0.0994,
    "h": 296.8
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#2C164F
secondary
#69863A
accent
#E048A5
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C164F

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

Preview Lab → · Contrast checker → · Palette generator →

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