#2B156F#2B156F

#2B156F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.143 H 284.8°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#2B156F
RGBrgb(43, 21, 111)
HSLhsl(255, 68%, 26%)
HSVhsv(255, 81%, 44%)
CMYKcmyk(61.3%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.49, 35.77, -47.83)
CIE-LCHlch(16.49, 59.73, 306.80°)
OKLaboklab(29.61% 0.0365 -0.1378)
OKLCHoklch(29.61% 0.143 284.8)
XYZxyz(4.1328, 2.1974, 15.2422)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B156F #596F15
analogous
#152C6F #2B156F #58156F
triadic
#2B156F #6F2B15 #156F2B
tetradic
#2B156F #6F152C #596F15 #156F58
square
#2B156F #6F152C #596F15 #156F58
split-complementary
#2B156F #6F5815 #2C6F15
monochromatic
#0A051A #170B3C #2B156F #3F1FA2 #5328D6

Accessibility & contrast

On white

14.59
#2B156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2B156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B156F
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B156F#FFFFFF#000000##FFFFFF
##2B156F1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#042F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b156f;
/* rgb */ color: rgb(43, 21, 111);
/* oklch */ color: oklch(29.6% 0.143 284.8);
Tailwind
colors: {
  custom: {
    50: '#6e5699',
    500: '#2b156f',
    950: '#000000',
  },
}
SCSS
$custom: #2b156f;
$custom-light: #6e5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2b156f",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 254.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29614,
    "c": 0.14255,
    "h": 284.8
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#2B156F
secondary
#8BA53A
accent
#EB3DC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B156F

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

Preview Lab → · Contrast checker → · Palette generator →

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