#2B176F#2B176F

#2B176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 284.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2B176F
RGBrgb(43, 23, 111)
HSLhsl(254, 66%, 26%)
HSVhsv(254, 79%, 44%)
CMYKcmyk(61.3%, 79.3%, 0%, 56.5%)
CIE-LABlab(16.86, 34.71, -47.21)
CIE-LCHlch(16.86, 58.60, 306.32°)
OKLaboklab(29.88% 0.035 -0.136)
OKLCHoklch(29.88% 0.14 284.4)
XYZxyz(4.1710, 2.2738, 15.2549)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B176F #5B6F17
analogous
#172F6F #2B176F #57176F
triadic
#2B176F #6F2B17 #176F2B
tetradic
#2B176F #6F172F #5B6F17 #176F57
square
#2B176F #6F172F #5B6F17 #176F57
split-complementary
#2B176F #6F5717 #2F6F17
monochromatic
#0A0519 #170C3C #2B176F #3F22A2 #532DD3

Accessibility & contrast

On white

14.43
#2B176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2B176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B176F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B176F#FFFFFF#000000##FFFFFF
##2B176F1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#043042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b176f;
/* rgb */ color: rgb(43, 23, 111);
/* oklch */ color: oklch(29.9% 0.140 284.4);
Tailwind
colors: {
  custom: {
    50: '#6e5799',
    500: '#2b176f',
    950: '#000000',
  },
}
SCSS
$custom: #2b176f;
$custom-light: #6e5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2b176f",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 253.636,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29875,
    "c": 0.14047,
    "h": 284.4
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

primary
#2B176F
secondary
#8DA53D
accent
#E93FC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B176F

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

Preview Lab → · Contrast checker → · Palette generator →

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