#2C173E#2C173E

#2C173E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.074 H 306.8°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#2C173E
RGBrgb(44, 23, 62)
HSLhsl(272, 46%, 17%)
HSVhsv(272, 63%, 24%)
CMYKcmyk(29%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.58, 19.60, -21.02)
CIE-LCHlch(12.58, 28.74, 313.00°)
OKLaboklab(25.47% 0.0442 -0.0591)
OKLCHoklch(25.47% 0.074 306.8)
XYZxyz(2.2144, 1.4961, 4.7286)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C173E #293E17
analogous
#19173E #2C173E #3E173D
triadic
#2C173E #3E2C17 #173E2C
tetradic
#2C173E #3E1917 #293E17 #173D3E
square
#2C173E #3E1917 #293E17 #173D3E
split-complementary
#2C173E #3D3E17 #173E19
monochromatic
#100816 #100816 #2C173E #4C286B #6B3897

Accessibility & contrast

On white

16.16
#2C173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2C173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C173E
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C173E#FFFFFF#000000##FFFFFF
##2C173E1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A203F
Deuteranopia (green-blind)
#11213D
Tritanopia (blue-blind)
#291E27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2c173e;
/* rgb */ color: rgb(44, 23, 62);
/* oklch */ color: oklch(25.5% 0.074 306.8);
Tailwind
colors: {
  custom: {
    50: '#675573',
    500: '#2c173e',
    950: '#000000',
  },
}
SCSS
$custom: #2c173e;
$custom-light: #675573;
$custom-dark: #000000;
JSON
{
  "hex": "#2c173e",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 272.308,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25466,
    "c": 0.0738,
    "h": 306.8
  },
  "luminance": 0.01496
}

Semantic roles & 50–950 ramp

primary
#2C173E
secondary
#56753C
accent
#D6528F
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2C173E

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

Preview Lab → · Contrast checker → · Palette generator →

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