#2C154F#2C154F

#2C154F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.101 H 297.2°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2C154F
RGBrgb(44, 21, 79)
HSLhsl(264, 58%, 20%)
HSVhsv(264, 73%, 31%)
CMYKcmyk(44.3%, 73.4%, 0%, 69%)
CIE-LABlab(13.45, 25.96, -31.46)
CIE-LCHlch(13.45, 40.78, 309.53°)
OKLaboklab(26.52% 0.0461 -0.0898)
OKLCHoklch(26.52% 0.101 297.2)
XYZxyz(2.7178, 1.6363, 7.5683)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C154F #384F15
analogous
#151B4F #2C154F #49154F
triadic
#2C154F #4F2C15 #154F2C
tetradic
#2C154F #4F151B #384F15 #154F49
square
#2C154F #4F151B #384F15 #154F49
split-complementary
#2C154F #4F4915 #1B4F15
monochromatic
#0D0618 #11081F #2C154F #47227F #622FB0

Accessibility & contrast

On white

15.82
#2C154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C154F
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C154F#FFFFFF#000000##FFFFFF
##2C154F1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#232330
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c154f;
/* rgb */ color: rgb(44, 21, 79);
/* oklch */ color: oklch(26.5% 0.101 297.2);
Tailwind
colors: {
  custom: {
    50: '#695481',
    500: '#2c154f',
    950: '#000000',
  },
}
SCSS
$custom: #2c154f;
$custom-light: #695481;
$custom-dark: #000000;
JSON
{
  "hex": "#2c154f",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 263.793,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26522,
    "c": 0.10093,
    "h": 297.2
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#2C154F
secondary
#688739
accent
#E147A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C154F

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

Preview Lab → · Contrast checker → · Palette generator →

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