#2B178C#2B178C

#2B178C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.176 H 278.5°. Best body text is #FFFFFF at 13.09:1 contrast (WCAG AA passes).

Color values

HEX#2B178C
RGBrgb(43, 23, 140)
HSLhsl(250, 72%, 32%)
HSVhsv(250, 84%, 55%)
CMYKcmyk(69.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(20.12, 43.78, -60.31)
CIE-LCHlch(20.12, 74.52, 305.98°)
OKLaboklab(33.11% 0.0261 -0.1742)
OKLCHoklch(33.11% 0.176 278.5)
XYZxyz(6.0348, 3.0193, 25.0706)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B178C #788C17
analogous
#173E8C #2B178C #65178C
triadic
#2B178C #8C2B17 #178C2B
tetradic
#2B178C #8C173E #788C17 #178C65
square
#2B178C #8C173E #788C17 #178C65
split-complementary
#2B178C #8C6517 #3E8C17
monochromatic
#0B0623 #1B0E57 #2B178C #3B20C1 #5A3EDF

Accessibility & contrast

On white

13.09
#2B178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B178C
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B178C#FFFFFF#000000##FFFFFF
##2B178C1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b178c;
/* rgb */ color: rgb(43, 23, 140);
/* oklch */ color: oklch(33.1% 0.176 278.5);
Tailwind
colors: {
  custom: {
    50: '#7459af',
    500: '#2b178c',
    950: '#000000',
  },
}
SCSS
$custom: #2b178c;
$custom-light: #7459af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b178c",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 250.256,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33109,
    "c": 0.17612,
    "h": 278.5
  },
  "luminance": 0.0302
}

Semantic roles & 50–950 ramp

primary
#2B178C
secondary
#AABF3F
accent
#EF39D0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B178C

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

Preview Lab → · Contrast checker → · Palette generator →

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