#2B176E#2B176E

#2B176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.139 H 284.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#2B176E
RGBrgb(43, 23, 110)
HSLhsl(254, 65%, 26%)
HSVhsv(254, 79%, 43%)
CMYKcmyk(60.9%, 79.1%, 0%, 56.9%)
CIE-LABlab(16.76, 34.39, -46.74)
CIE-LCHlch(16.76, 58.03, 306.35°)
OKLaboklab(29.77% 0.0353 -0.1346)
OKLCHoklch(29.77% 0.139 284.7)
XYZxyz(4.1163, 2.2519, 14.9666)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B176E #5A6E17
analogous
#172E6E #2B176E #56176E
triadic
#2B176E #6E2B17 #176E2B
tetradic
#2B176E #6E172E #5A6E17 #176E56
square
#2B176E #6E172E #5A6E17 #176E56
split-complementary
#2B176E #6E5617 #2E6E17
monochromatic
#0A0519 #170C3B #2B176E #3F22A1 #532CD3

Accessibility & contrast

On white

14.48
#2B176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B176E
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B176E#FFFFFF#000000##FFFFFF
##2B176E1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#063041
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2b176e;
/* rgb */ color: rgb(43, 23, 110);
/* oklch */ color: oklch(29.8% 0.139 284.7);
Tailwind
colors: {
  custom: {
    50: '#6d5799',
    500: '#2b176e',
    950: '#000000',
  },
}
SCSS
$custom: #2b176e;
$custom-light: #6d5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2b176e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 253.793,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29769,
    "c": 0.13919,
    "h": 284.7
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#2B176E
secondary
#8CA43D
accent
#E83FC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B176E

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

Preview Lab → · Contrast checker → · Palette generator →

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