#2B178E#2B178E

#2B178E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.178 H 278.2°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2B178E
RGBrgb(43, 23, 142)
HSLhsl(250, 72%, 32%)
HSVhsv(250, 84%, 56%)
CMYKcmyk(69.7%, 83.8%, 0%, 44.3%)
CIE-LABlab(20.36, 44.39, -61.16)
CIE-LCHlch(20.36, 75.57, 305.97°)
OKLaboklab(33.34% 0.0254 -0.1767)
OKLCHoklch(33.34% 0.178 278.2)
XYZxyz(6.1836, 3.0788, 25.8543)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B178E #7A8E17
analogous
#173F8E #2B178E #67178E
triadic
#2B178E #8E2B17 #178E2B
tetradic
#2B178E #8E173F #7A8E17 #178E67
square
#2B178E #8E173F #7A8E17 #178E67
split-complementary
#2B178E #8E6717 #3F8E17
monochromatic
#0B0625 #1B0E59 #2B178E #3B20C3 #5A3FE0

Accessibility & contrast

On white

13.00
#2B178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2B178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B178E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B178E#FFFFFF#000000##FFFFFF
##2B178E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003691
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2b178e;
/* rgb */ color: rgb(43, 23, 142);
/* oklch */ color: oklch(33.3% 0.178 278.2);
Tailwind
colors: {
  custom: {
    50: '#7459b0',
    500: '#2b178e',
    950: '#000000',
  },
}
SCSS
$custom: #2b178e;
$custom-light: #7459b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b178e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 250.084,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3334,
    "c": 0.17849,
    "h": 278.2
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#2B178E
secondary
#ABC040
accent
#EF39D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B178E

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

Preview Lab → · Contrast checker → · Palette generator →

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