#2B177A#2B177A

#2B177A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.154 H 281.9°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#2B177A
RGBrgb(43, 23, 122)
HSLhsl(252, 68%, 28%)
HSVhsv(252, 81%, 48%)
CMYKcmyk(64.8%, 81.1%, 0%, 52.2%)
CIE-LABlab(18.06, 38.19, -52.34)
CIE-LCHlch(18.06, 64.79, 306.12°)
OKLaboklab(31.07% 0.0317 -0.151)
OKLCHoklch(31.07% 0.154 281.9)
XYZxyz(4.8144, 2.5312, 18.6434)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B177A #667A17
analogous
#17347A #2B177A #5C177A
triadic
#2B177A #7A2B17 #177A2B
tetradic
#2B177A #7A1734 #667A17 #177A5C
square
#2B177A #7A1734 #667A17 #177A5C
split-complementary
#2B177A #7A5C17 #347A17
monochromatic
#09051A #190D47 #2B177A #3D21AD #5433D9

Accessibility & contrast

On white

13.94
#2B177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B177A
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B177A#FFFFFF#000000##FFFFFF
##2B177A1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b177a;
/* rgb */ color: rgb(43, 23, 122);
/* oklch */ color: oklch(31.1% 0.154 281.9);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2b177a',
    950: '#000000',
  },
}
SCSS
$custom: #2b177a;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b177a",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 252.121,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3107,
    "c": 0.15428,
    "h": 281.9
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#2B177A
secondary
#98AF3E
accent
#EB3DC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B177A

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

Preview Lab → · Contrast checker → · Palette generator →

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