#2C154B#2C154B

#2C154B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.095 H 299.3°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#2C154B
RGBrgb(44, 21, 75)
HSLhsl(266, 56%, 19%)
HSVhsv(266, 72%, 29%)
CMYKcmyk(41.3%, 72%, 0%, 70.6%)
CIE-LABlab(13.11, 24.74, -29.26)
CIE-LCHlch(13.11, 38.32, 310.22°)
OKLaboklab(26.17% 0.0467 -0.0833)
OKLCHoklch(26.17% 0.095 299.3)
XYZxyz(2.5766, 1.5798, 6.8244)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C154B #344B15
analogous
#15194B #2C154B #47154B
triadic
#2C154B #4B2C15 #154B2C
tetradic
#2C154B #4B1519 #344B15 #154B47
square
#2C154B #4B1519 #344B15 #154B47
split-complementary
#2C154B #4B4715 #194B15
monochromatic
#0E0718 #10081B #2C154B #48227B #6430AB

Accessibility & contrast

On white

15.96
#2C154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2C154B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C154B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C154B#FFFFFF#000000##FFFFFF
##2C154B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#25212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2c154b;
/* rgb */ color: rgb(44, 21, 75);
/* oklch */ color: oklch(26.2% 0.095 299.3);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2c154b',
    950: '#000000',
  },
}
SCSS
$custom: #2c154b;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c154b",
  "rgb": {
    "r": 44,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 265.556,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26167,
    "c": 0.09549,
    "h": 299.3
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#2C154B
secondary
#638339
accent
#E0489F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2C154B

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

Preview Lab → · Contrast checker → · Palette generator →

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