#2B154D#2B154D

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

Color values

HEX#2B154D
RGBrgb(43, 21, 77)
HSLhsl(264, 57%, 19%)
HSVhsv(264, 73%, 30%)
CMYKcmyk(44.2%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.14, 25.11, -30.59)
CIE-LCHlch(13.14, 39.57, 309.38°)
OKLaboklab(26.22% 0.0448 -0.0872)
OKLCHoklch(26.22% 0.098 297.2)
XYZxyz(2.6036, 1.5857, 7.1886)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154D #374D15
analogous
#151B4D #2B154D #47154D
triadic
#2B154D #4D2B15 #154D2B
tetradic
#2B154D #4D151B #374D15 #154D47
square
#2B154D #4D151B #374D15 #154D47
split-complementary
#2B154D #4D4715 #1B4D15
monochromatic
#0D0718 #10081D #2B154D #46227D #612FAD

Accessibility & contrast

On white

15.94
#2B154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B154D
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154D#FFFFFF#000000##FFFFFF
##2B154D1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b154d;
/* rgb */ color: rgb(43, 21, 77);
/* oklch */ color: oklch(26.2% 0.098 297.2);
Tailwind
colors: {
  custom: {
    50: '#68547f',
    500: '#2b154d',
    950: '#000000',
  },
}
SCSS
$custom: #2b154d;
$custom-light: #68547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154d",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 263.571,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26217,
    "c": 0.09808,
    "h": 297.2
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#2B154D
secondary
#678539
accent
#E047A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B154D

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

Preview Lab → · Contrast checker → · Palette generator →

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