#2B154A#2B154A

#2B154A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.094 H 298.7°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#2B154A
RGBrgb(43, 21, 74)
HSLhsl(265, 56%, 19%)
HSVhsv(265, 72%, 29%)
CMYKcmyk(41.9%, 71.6%, 0%, 71%)
CIE-LABlab(12.89, 24.19, -28.93)
CIE-LCHlch(12.89, 37.71, 309.90°)
OKLaboklab(25.95% 0.0452 -0.0824)
OKLCHoklch(25.95% 0.094 298.7)
XYZxyz(2.5001, 1.5443, 6.6436)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154A #344A15
analogous
#15194A #2B154A #45154A
triadic
#2B154A #4A2B15 #154A2B
tetradic
#2B154A #4A1519 #344A15 #154A45
square
#2B154A #4A1519 #344A15 #154A45
split-complementary
#2B154A #4A4515 #194A15
monochromatic
#0E0718 #0F071A #2B154A #47237A #6230A9

Accessibility & contrast

On white

16.05
#2B154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B154A
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154A#FFFFFF#000000##FFFFFF
##2B154A1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#002149
Tritanopia (blue-blind)
#24212D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b154a;
/* rgb */ color: rgb(43, 21, 74);
/* oklch */ color: oklch(26.0% 0.094 298.7);
Tailwind
colors: {
  custom: {
    50: '#67547d',
    500: '#2b154a',
    950: '#000000',
  },
}
SCSS
$custom: #2b154a;
$custom-light: #67547d;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154a",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 264.906,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25952,
    "c": 0.09395,
    "h": 298.7
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#2B154A
secondary
#648239
accent
#DF49A1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2B154A

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

Preview Lab → · Contrast checker → · Palette generator →

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