#2B164F#2B164F

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

Color values

HEX#2B164F
RGBrgb(43, 22, 79)
HSLhsl(262, 56%, 20%)
HSVhsv(262, 72%, 31%)
CMYKcmyk(45.6%, 72.2%, 0%, 69%)
CIE-LABlab(13.54, 25.11, -31.31)
CIE-LCHlch(13.54, 40.14, 308.73°)
OKLaboklab(26.56% 0.0432 -0.0894)
OKLCHoklch(26.56% 0.099 295.8)
XYZxyz(2.6941, 1.6519, 7.5725)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B164F #3A4F16
analogous
#161E4F #2B164F #48164F
triadic
#2B164F #4F2B16 #164F2B
tetradic
#2B164F #4F161E #3A4F16 #164F48
square
#2B164F #4F161E #3A4F16 #164F48
split-complementary
#2B164F #4F4816 #1E4F16
monochromatic
#0D0718 #11091F #2B164F #45237F #5F31AF

Accessibility & contrast

On white

15.78
#2B164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B164F
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B164F#FFFFFF#000000##FFFFFF
##2B164F1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#222330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b164f;
/* rgb */ color: rgb(43, 22, 79);
/* oklch */ color: oklch(26.6% 0.099 295.8);
Tailwind
colors: {
  custom: {
    50: '#685581',
    500: '#2b164f',
    950: '#000000',
  },
}
SCSS
$custom: #2b164f;
$custom-light: #685581;
$custom-dark: #000000;
JSON
{
  "hex": "#2b164f",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 262.105,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26559,
    "c": 0.09929,
    "h": 295.8
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#2B164F
secondary
#6A863A
accent
#E048A8
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B164F

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

Preview Lab → · Contrast checker → · Palette generator →

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