#2B154C#2B154C

#2B154C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.097 H 297.7°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#2B154C
RGBrgb(43, 21, 76)
HSLhsl(264, 57%, 19%)
HSVhsv(264, 72%, 30%)
CMYKcmyk(43.4%, 72.4%, 0%, 70.2%)
CIE-LABlab(13.06, 24.80, -30.04)
CIE-LCHlch(13.06, 38.95, 309.54°)
OKLaboklab(26.13% 0.0449 -0.0856)
OKLCHoklch(26.13% 0.097 297.7)
XYZxyz(2.5686, 1.5717, 7.0041)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154C #364C15
analogous
#151B4C #2B154C #47154C
triadic
#2B154C #4C2B15 #154C2B
tetradic
#2B154C #4C151B #364C15 #154C47
square
#2B154C #4C151B #364C15 #154C47
split-complementary
#2B154C #4C4715 #1B4C15
monochromatic
#0E0718 #10081C #2B154C #46227C #612FAC

Accessibility & contrast

On white

15.98
#2B154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B154C
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154C#FFFFFF#000000##FFFFFF
##2B154C1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#23222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b154c;
/* rgb */ color: rgb(43, 21, 76);
/* oklch */ color: oklch(26.1% 0.097 297.7);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2b154c',
    950: '#000000',
  },
}
SCSS
$custom: #2b154c;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154c",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 264,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26128,
    "c": 0.0967,
    "h": 297.7
  },
  "luminance": 0.01572
}

Semantic roles & 50–950 ramp

primary
#2B154C
secondary
#668439
accent
#E048A3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B154C

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

Preview Lab → · Contrast checker → · Palette generator →

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