#2B154F#2B154F

#2B154F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.101 H 296.2°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2B154F
RGBrgb(43, 21, 79)
HSLhsl(263, 58%, 20%)
HSVhsv(263, 73%, 31%)
CMYKcmyk(45.6%, 73.4%, 0%, 69%)
CIE-LABlab(13.32, 25.73, -31.68)
CIE-LCHlch(13.32, 40.81, 309.08°)
OKLaboklab(26.4% 0.0445 -0.0904)
OKLCHoklch(26.4% 0.101 296.2)
XYZxyz(2.6753, 1.6144, 7.5663)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154F #394F15
analogous
#151C4F #2B154F #48154F
triadic
#2B154F #4F2B15 #154F2B
tetradic
#2B154F #4F151C #394F15 #154F48
square
#2B154F #4F151C #394F15 #154F48
split-complementary
#2B154F #4F4815 #1C4F15
monochromatic
#0D0618 #11081F #2B154F #45227F #602FB0

Accessibility & contrast

On white

15.88
#2B154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B154F
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154F#FFFFFF#000000##FFFFFF
##2B154F1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#222330
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b154f;
/* rgb */ color: rgb(43, 21, 79);
/* oklch */ color: oklch(26.4% 0.101 296.2);
Tailwind
colors: {
  custom: {
    50: '#685481',
    500: '#2b154f',
    950: '#000000',
  },
}
SCSS
$custom: #2b154f;
$custom-light: #685481;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154f",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 262.759,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26397,
    "c": 0.1008,
    "h": 296.2
  },
  "luminance": 0.01614
}

Semantic roles & 50–950 ramp

primary
#2B154F
secondary
#698739
accent
#E147A7
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B154F

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

Preview Lab → · Contrast checker → · Palette generator →

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