#2D164B#2D164B

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

Color values

HEX#2D164B
RGBrgb(45, 22, 75)
HSLhsl(266, 55%, 19%)
HSVhsv(266, 71%, 29%)
CMYKcmyk(40%, 70.7%, 0%, 70.6%)
CIE-LABlab(13.47, 24.37, -28.67)
CIE-LCHlch(13.47, 37.63, 310.37°)
OKLaboklab(26.46% 0.047 -0.0815)
OKLCHoklch(26.46% 0.094 299.9)
XYZxyz(2.6388, 1.6397, 6.8327)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D164B #344B16
analogous
#161A4B #2D164B #48164B
triadic
#2D164B #4B2D16 #164B2D
tetradic
#2D164B #4B161A #344B16 #164B48
square
#2D164B #4B161A #344B16 #164B48
split-complementary
#2D164B #4B4816 #1A4B16
monochromatic
#0E0718 #11081C #2D164B #49247A #6632AA

Accessibility & contrast

On white

15.81
#2D164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D164B
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D164B#FFFFFF#000000##FFFFFF
##2D164B1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#02224A
Tritanopia (blue-blind)
#26222E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2d164b;
/* rgb */ color: rgb(45, 22, 75);
/* oklch */ color: oklch(26.5% 0.094 299.9);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2d164b',
    950: '#000000',
  },
}
SCSS
$custom: #2d164b;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d164b",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 266.038,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2646,
    "c": 0.09407,
    "h": 299.9
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#2D164B
secondary
#63833A
accent
#DE4A9E
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D164B

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

Preview Lab → · Contrast checker → · Palette generator →

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