#2B173E#2B173E

#2B173E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.3% C 0.073 H 305.5°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2B173E
RGBrgb(43, 23, 62)
HSLhsl(271, 46%, 17%)
HSVhsv(271, 63%, 24%)
CMYKcmyk(30.6%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.44, 19.29, -21.25)
CIE-LCHlch(12.44, 28.70, 312.23°)
OKLaboklab(25.33% 0.0426 -0.0598)
OKLCHoklch(25.33% 0.073 305.5)
XYZxyz(2.1720, 1.4742, 4.7266)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B173E #2A3E17
analogous
#18173E #2B173E #3E173E
triadic
#2B173E #3E2B17 #173E2B
tetradic
#2B173E #3E1817 #2A3E17 #173E3E
square
#2B173E #3E1817 #2A3E17 #173E3E
split-complementary
#2B173E #3E3E17 #173E18
monochromatic
#0F0816 #0F0816 #2B173E #4A286B #693897

Accessibility & contrast

On white

16.22
#2B173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B173E
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B173E#FFFFFF#000000##FFFFFF
##2B173E1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09203F
Deuteranopia (green-blind)
#10203D
Tritanopia (blue-blind)
#281E27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b173e;
/* rgb */ color: rgb(43, 23, 62);
/* oklch */ color: oklch(25.3% 0.073 305.5);
Tailwind
colors: {
  custom: {
    50: '#665573',
    500: '#2b173e',
    950: '#000000',
  },
}
SCSS
$custom: #2b173e;
$custom-light: #665573;
$custom-dark: #000000;
JSON
{
  "hex": "#2b173e",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 270.769,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25332,
    "c": 0.07345,
    "h": 305.5
  },
  "luminance": 0.01474
}

Semantic roles & 50–950 ramp

primary
#2B173E
secondary
#58753C
accent
#D65292
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2B173E

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

Preview Lab → · Contrast checker → · Palette generator →

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