#2B174E#2B174E

#2B174E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.096 H 295.9°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2B174E
RGBrgb(43, 23, 78)
HSLhsl(262, 54%, 20%)
HSVhsv(262, 71%, 31%)
CMYKcmyk(44.9%, 70.5%, 0%, 69.4%)
CIE-LABlab(13.69, 24.17, -30.39)
CIE-LCHlch(13.69, 38.83, 308.49°)
OKLaboklab(26.64% 0.0421 -0.0867)
OKLCHoklch(26.64% 0.096 295.9)
XYZxyz(2.6774, 1.6764, 7.3888)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B174E #3A4E17
analogous
#171F4E #2B174E #46174E
triadic
#2B174E #4E2B17 #174E2B
tetradic
#2B174E #4E171F #3A4E17 #174E46
square
#2B174E #4E171F #3A4E17 #174E46
split-complementary
#2B174E #4E4617 #1F4E17
monochromatic
#0D0718 #11091F #2B174E #45257D #5F33AD

Accessibility & contrast

On white

15.73
#2B174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B174E
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B174E#FFFFFF#000000##FFFFFF
##2B174E1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#222430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b174e;
/* rgb */ color: rgb(43, 23, 78);
/* oklch */ color: oklch(26.6% 0.096 295.9);
Tailwind
colors: {
  custom: {
    50: '#685580',
    500: '#2b174e',
    950: '#000000',
  },
}
SCSS
$custom: #2b174e;
$custom-light: #685580;
$custom-dark: #000000;
JSON
{
  "hex": "#2b174e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 261.818,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26637,
    "c": 0.09635,
    "h": 295.9
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#2B174E
secondary
#6A853C
accent
#DE4AA8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B174E

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

Preview Lab → · Contrast checker → · Palette generator →

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