#2C176E#2C176E

#2C176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.139 H 285.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2C176E
RGBrgb(44, 23, 110)
HSLhsl(254, 65%, 26%)
HSVhsv(254, 79%, 43%)
CMYKcmyk(60%, 79.1%, 0%, 56.9%)
CIE-LABlab(16.86, 34.54, -46.56)
CIE-LCHlch(16.86, 57.97, 306.57°)
OKLaboklab(29.87% 0.0369 -0.1341)
OKLCHoklch(29.87% 0.139 285.4)
XYZxyz(4.1587, 2.2738, 14.9686)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C176E #596E17
analogous
#172D6E #2C176E #57176E
triadic
#2C176E #6E2C17 #176E2C
tetradic
#2C176E #6E172D #596E17 #176E57
square
#2C176E #6E172D #596E17 #176E57
split-complementary
#2C176E #6E5717 #2D6E17
monochromatic
#0A0519 #180C3B #2C176E #4022A1 #552CD3

Accessibility & contrast

On white

14.43
#2C176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2C176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C176E
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C176E#FFFFFF#000000##FFFFFF
##2C176E1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#0A3041
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2c176e;
/* rgb */ color: rgb(44, 23, 110);
/* oklch */ color: oklch(29.9% 0.139 285.4);
Tailwind
colors: {
  custom: {
    50: '#6e5799',
    500: '#2c176e',
    950: '#000000',
  },
}
SCSS
$custom: #2c176e;
$custom-light: #6e5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2c176e",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 254.483,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.13908,
    "h": 285.4
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#2C176E
secondary
#8BA43D
accent
#E83FC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2C176E

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

Preview Lab → · Contrast checker → · Palette generator →

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