#2B175A#2B175A

#2B175A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.113 H 290.9°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2B175A
RGBrgb(43, 23, 90)
HSLhsl(258, 59%, 22%)
HSVhsv(258, 74%, 35%)
CMYKcmyk(52.2%, 74.4%, 0%, 64.7%)
CIE-LABlab(14.76, 27.98, -36.79)
CIE-LCHlch(14.76, 46.23, 307.25°)
OKLaboklab(27.74% 0.0402 -0.1055)
OKLCHoklch(27.74% 0.113 290.9)
XYZxyz(3.1476, 1.8644, 9.8649)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B175A #465A17
analogous
#17255A #2B175A #4C175A
triadic
#2B175A #5A2B17 #175A2B
tetradic
#2B175A #5A1725 #465A17 #175A4C
square
#2B175A #5A1725 #465A17 #175A4C
split-complementary
#2B175A #5A4C17 #255A17
monochromatic
#0C0618 #140B29 #2B175A #42238B #5A30BB

Accessibility & contrast

On white

15.29
#2B175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2B175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B175A
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B175A#FFFFFF#000000##FFFFFF
##2B175A1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1C2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2b175a;
/* rgb */ color: rgb(43, 23, 90);
/* oklch */ color: oklch(27.7% 0.113 290.9);
Tailwind
colors: {
  custom: {
    50: '#6a5689',
    500: '#2b175a',
    950: '#000000',
  },
}
SCSS
$custom: #2b175a;
$custom-light: #6a5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2b175a",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 257.91,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27742,
    "c": 0.11291,
    "h": 290.9
  },
  "luminance": 0.01865
}

Semantic roles & 50–950 ramp

primary
#2B175A
secondary
#78913C
accent
#E245B4
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B175A

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

Preview Lab → · Contrast checker → · Palette generator →

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