#2B154E#2B154E

#2B154E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.099 H 296.7°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2B154E
RGBrgb(43, 21, 78)
HSLhsl(263, 58%, 19%)
HSVhsv(263, 73%, 31%)
CMYKcmyk(44.9%, 73.1%, 0%, 69.4%)
CIE-LABlab(13.23, 25.42, -31.13)
CIE-LCHlch(13.23, 40.19, 309.23°)
OKLaboklab(26.31% 0.0446 -0.0888)
OKLCHoklch(26.31% 0.099 296.7)
XYZxyz(2.6392, 1.5999, 7.3760)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B154E #384E15
analogous
#151C4E #2B154E #48154E
triadic
#2B154E #4E2B15 #154E2B
tetradic
#2B154E #4E151C #384E15 #154E48
square
#2B154E #4E151C #384E15 #154E48
split-complementary
#2B154E #4E4815 #1C4E15
monochromatic
#0D0618 #10081E #2B154E #46227E #602FAE

Accessibility & contrast

On white

15.91
#2B154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B154E
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B154E#FFFFFF#000000##FFFFFF
##2B154E1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#22222F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b154e;
/* rgb */ color: rgb(43, 21, 78);
/* oklch */ color: oklch(26.3% 0.099 296.7);
Tailwind
colors: {
  custom: {
    50: '#685480',
    500: '#2b154e',
    950: '#000000',
  },
}
SCSS
$custom: #2b154e;
$custom-light: #685480;
$custom-dark: #000000;
JSON
{
  "hex": "#2b154e",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 263.158,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26307,
    "c": 0.09943,
    "h": 296.7
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#2B154E
secondary
#688639
accent
#E147A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B154E

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

Preview Lab → · Contrast checker → · Palette generator →

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