#2B164E#2B164E

#2B164E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.098 H 296.3°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2B164E
RGBrgb(43, 22, 78)
HSLhsl(263, 56%, 20%)
HSVhsv(263, 72%, 31%)
CMYKcmyk(44.9%, 71.8%, 0%, 69.4%)
CIE-LABlab(13.46, 24.80, -30.77)
CIE-LCHlch(13.46, 39.52, 308.87°)
OKLaboklab(26.47% 0.0434 -0.0878)
OKLCHoklch(26.47% 0.098 296.3)
XYZxyz(2.6580, 1.6374, 7.3823)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164E #394E16
analogous
#161D4E #2B164E #47164E
triadic
#2B164E #4E2B16 #164E2B
tetradic
#2B164E #4E161D #394E16 #164E47
square
#2B164E #4E161D #394E16 #164E47
split-complementary
#2B164E #4E4716 #1D4E16
monochromatic
#0D0718 #11091E #2B164E #45237E #6031AD

Accessibility & contrast

On white

15.82
#2B164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B164E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B164E
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164E#FFFFFF#000000##FFFFFF
##2B164E1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#22232F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b164e;
/* rgb */ color: rgb(43, 22, 78);
/* oklch */ color: oklch(26.5% 0.098 296.3);
Tailwind
colors: {
  custom: {
    50: '#685480',
    500: '#2b164e',
    950: '#000000',
  },
}
SCSS
$custom: #2b164e;
$custom-light: #685480;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164e",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 262.5,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2647,
    "c": 0.09791,
    "h": 296.3
  },
  "luminance": 0.01637
}

Semantic roles & 50–950 ramp

primary
#2B164E
secondary
#69853A
accent
#DF49A7
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B164E

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

Preview Lab → · Contrast checker → · Palette generator →

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