#2B177B#2B177B

#2B177B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.156 H 281.7°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2B177B
RGBrgb(43, 23, 123)
HSLhsl(252, 68%, 29%)
HSVhsv(252, 81%, 48%)
CMYKcmyk(65%, 81.3%, 0%, 51.8%)
CIE-LABlab(18.17, 38.51, -52.79)
CIE-LCHlch(18.17, 65.34, 306.11°)
OKLaboklab(31.18% 0.0314 -0.1523)
OKLCHoklch(31.18% 0.156 281.7)
XYZxyz(4.8767, 2.5561, 18.9714)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B177B #677B17
analogous
#17357B #2B177B #5D177B
triadic
#2B177B #7B2B17 #177B2B
tetradic
#2B177B #7B1735 #677B17 #177B5D
square
#2B177B #7B1735 #677B17 #177B5D
split-complementary
#2B177B #7B5D17 #357B17
monochromatic
#09051A #190D47 #2B177B #3D21AF #5533D9

Accessibility & contrast

On white

13.90
#2B177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B177B
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B177B#FFFFFF#000000##FFFFFF
##2B177B1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b177b;
/* rgb */ color: rgb(43, 23, 123);
/* oklch */ color: oklch(31.2% 0.156 281.7);
Tailwind
colors: {
  custom: {
    50: '#7057a2',
    500: '#2b177b',
    950: '#000000',
  },
}
SCSS
$custom: #2b177b;
$custom-light: #7057a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b177b",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 252,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31181,
    "c": 0.15552,
    "h": 281.7
  },
  "luminance": 0.02556
}

Semantic roles & 50–950 ramp

primary
#2B177B
secondary
#99B03E
accent
#EB3CC8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B177B

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

Preview Lab → · Contrast checker → · Palette generator →

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