#2C174B#2C174B

#2C174B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.092 H 298.5°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2C174B
RGBrgb(44, 23, 75)
HSLhsl(264, 53%, 19%)
HSVhsv(264, 69%, 29%)
CMYKcmyk(41.3%, 69.3%, 0%, 70.6%)
CIE-LABlab(13.57, 23.49, -28.51)
CIE-LCHlch(13.57, 36.94, 309.48°)
OKLaboklab(26.5% 0.044 -0.0811)
OKLCHoklch(26.5% 0.092 298.5)
XYZxyz(2.6148, 1.6562, 6.8372)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C174B #364B17
analogous
#171C4B #2C174B #46174B
triadic
#2C174B #4B2C17 #174B2C
tetradic
#2C174B #4B171C #364B17 #174B46
square
#2C174B #4B171C #364B17 #174B46
split-complementary
#2C174B #4B4617 #1C4B17
monochromatic
#0E0717 #11091C #2C174B #47257A #6334A9

Accessibility & contrast

On white

15.78
#2C174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C174B
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C174B#FFFFFF#000000##FFFFFF
##2C174B1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#02224A
Tritanopia (blue-blind)
#25222E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2c174b;
/* rgb */ color: rgb(44, 23, 75);
/* oklch */ color: oklch(26.5% 0.092 298.5);
Tailwind
colors: {
  custom: {
    50: '#68557e',
    500: '#2c174b',
    950: '#000000',
  },
}
SCSS
$custom: #2c174b;
$custom-light: #68557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c174b",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 264.231,
    "s": 53.061,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26501,
    "c": 0.09228,
    "h": 298.5
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#2C174B
secondary
#66823C
accent
#DC4BA2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C174B

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

Preview Lab → · Contrast checker → · Palette generator →

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