#2B175D#2B175D

#2B175D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.117 H 289.8°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#2B175D
RGBrgb(43, 23, 93)
HSLhsl(257, 60%, 23%)
HSVhsv(257, 75%, 36%)
CMYKcmyk(53.8%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.04, 28.94, -38.34)
CIE-LCHlch(15.04, 48.04, 307.05°)
OKLaboklab(28.03% 0.0396 -0.11)
OKLCHoklch(28.03% 0.117 289.8)
XYZxyz(3.2779, 1.9166, 10.5510)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B175D #495D17
analogous
#17265D #2B175D #4E175D
triadic
#2B175D #5D2B17 #175D2B
tetradic
#2B175D #5D1726 #495D17 #175D4E
square
#2B175D #5D1726 #495D17 #175D4E
split-complementary
#2B175D #5D4E17 #265D17
monochromatic
#0B0619 #140B2C #2B175D #42238E #582FBF

Accessibility & contrast

On white

15.18
#2B175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B175D
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B175D#FFFFFF#000000##FFFFFF
##2B175D1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1A2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b175d;
/* rgb */ color: rgb(43, 23, 93);
/* oklch */ color: oklch(28.0% 0.117 289.8);
Tailwind
colors: {
  custom: {
    50: '#6a568c',
    500: '#2b175d',
    950: '#000000',
  },
}
SCSS
$custom: #2b175d;
$custom-light: #6a568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b175d",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 257.143,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.11695,
    "h": 289.8
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#2B175D
secondary
#7B943C
accent
#E344B6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2B175D

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

Preview Lab → · Contrast checker → · Palette generator →

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