#2C184F#2C184F

#2C184F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.096 H 296.1°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#2C184F
RGBrgb(44, 24, 79)
HSLhsl(262, 53%, 20%)
HSVhsv(262, 70%, 31%)
CMYKcmyk(44.3%, 69.6%, 0%, 69%)
CIE-LABlab(14.13, 24.09, -30.35)
CIE-LCHlch(14.13, 38.75, 308.45°)
OKLaboklab(27.02% 0.0423 -0.0865)
OKLCHoklch(27.02% 0.096 296.1)
XYZxyz(2.7763, 1.7532, 7.5877)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C184F #3B4F18
analogous
#18204F #2C184F #47184F
triadic
#2C184F #4F2C18 #184F2C
tetradic
#2C184F #4F1820 #3B4F18 #184F47
square
#2C184F #4F1820 #3B4F18 #184F47
split-complementary
#2C184F #4F4718 #204F18
monochromatic
#0D0717 #120A20 #2C184F #46267E #6035AD

Accessibility & contrast

On white

15.55
#2C184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2C184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C184F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C184F#FFFFFF#000000##FFFFFF
##2C184F1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#232431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2c184f;
/* rgb */ color: rgb(44, 24, 79);
/* oklch */ color: oklch(27.0% 0.096 296.1);
Tailwind
colors: {
  custom: {
    50: '#685681',
    500: '#2c184f',
    950: '#000000',
  },
}
SCSS
$custom: #2c184f;
$custom-light: #685681;
$custom-dark: #000000;
JSON
{
  "hex": "#2c184f",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 261.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27016,
    "c": 0.09629,
    "h": 296.1
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#2C184F
secondary
#6B863D
accent
#DD4BA8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C184F

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

Preview Lab → · Contrast checker → · Palette generator →

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