#2C163F#2C163F

#2C163F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.077 H 306.5°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#2C163F
RGBrgb(44, 22, 63)
HSLhsl(272, 48%, 17%)
HSVhsv(272, 65%, 25%)
CMYKcmyk(30.2%, 65.1%, 0%, 75.3%)
CIE-LABlab(12.40, 20.55, -22.01)
CIE-LCHlch(12.40, 30.11, 313.03°)
OKLaboklab(25.36% 0.0458 -0.062)
OKLCHoklch(25.36% 0.077 306.5)
XYZxyz(2.2226, 1.4682, 4.8680)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C163F #293F16
analogous
#18163F #2C163F #3F163E
triadic
#2C163F #3F2C16 #163F2C
tetradic
#2C163F #3F1816 #293F16 #163E3F
square
#2C163F #3F1816 #293F16 #163E3F
split-complementary
#2C163F #3E3F16 #163F18
monochromatic
#100817 #100817 #2C163F #4C266C #6B369A

Accessibility & contrast

On white

16.23
#2C163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2C163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C163F
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C163F#FFFFFF#000000##FFFFFF
##2C163F1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072040
Deuteranopia (green-blind)
#0F203E
Tritanopia (blue-blind)
#291E28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2c163f;
/* rgb */ color: rgb(44, 22, 63);
/* oklch */ color: oklch(25.4% 0.077 306.5);
Tailwind
colors: {
  custom: {
    50: '#675474',
    500: '#2c163f',
    950: '#000000',
  },
}
SCSS
$custom: #2c163f;
$custom-light: #675474;
$custom-dark: #000000;
JSON
{
  "hex": "#2c163f",
  "rgb": {
    "r": 44,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 272.195,
    "s": 48.235,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25358,
    "c": 0.0771,
    "h": 306.5
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#2C163F
secondary
#56763B
accent
#D8508F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2C163F

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

Preview Lab → · Contrast checker → · Palette generator →

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