#2B154B#2B154B

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

Color values

HEX#2B154B
RGBrgb(43, 21, 75)
HSLhsl(264, 56%, 19%)
HSVhsv(264, 72%, 29%)
CMYKcmyk(42.7%, 72%, 0%, 70.6%)
CIE-LABlab(12.97, 24.49, -29.49)
CIE-LCHlch(12.97, 38.33, 309.72°)
OKLaboklab(26.04% 0.0451 -0.084)
OKLCHoklch(26.04% 0.095 298.2)
XYZxyz(2.5341, 1.5579, 6.8224)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154B #354B15
analogous
#151A4B #2B154B #46154B
triadic
#2B154B #4B2B15 #154B2B
tetradic
#2B154B #4B151A #354B15 #154B46
square
#2B154B #4B151A #354B15 #154B46
split-complementary
#2B154B #4B4615 #1A4B15
monochromatic
#0E0718 #10081B #2B154B #46227B #6230AB

Accessibility & contrast

On white

16.01
#2B154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B154B
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154B#FFFFFF#000000##FFFFFF
##2B154B1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b154b;
/* rgb */ color: rgb(43, 21, 75);
/* oklch */ color: oklch(26.0% 0.095 298.2);
Tailwind
colors: {
  custom: {
    50: '#68547e',
    500: '#2b154b',
    950: '#000000',
  },
}
SCSS
$custom: #2b154b;
$custom-light: #68547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154b",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 264.444,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26039,
    "c": 0.09533,
    "h": 298.2
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#2B154B
secondary
#658339
accent
#E048A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B154B

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

Preview Lab → · Contrast checker → · Palette generator →

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