#2D167A#2D167A

#2D167A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.155 H 283.3°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#2D167A
RGBrgb(45, 22, 122)
HSLhsl(254, 69%, 28%)
HSVhsv(254, 82%, 48%)
CMYKcmyk(63.1%, 82%, 0%, 52.2%)
CIE-LABlab(18.08, 38.94, -52.29)
CIE-LCHlch(18.08, 65.20, 306.67°)
OKLaboklab(31.14% 0.0356 -0.1508)
OKLCHoklch(31.14% 0.155 283.3)
XYZxyz(4.8809, 2.5365, 18.6410)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167A #637A16
analogous
#16317A #2D167A #5F167A
triadic
#2D167A #7A2D16 #167A2D
tetradic
#2D167A #7A1631 #637A16 #167A5F
square
#2D167A #7A1631 #637A16 #167A5F
split-complementary
#2D167A #7A5F16 #317A16
monochromatic
#0A051A #1A0D46 #2D167A #401FAE #5831DA

Accessibility & contrast

On white

13.93
#2D167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2D167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D167A
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167A#FFFFFF#000000##FFFFFF
##2D167A1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002978
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d167a;
/* rgb */ color: rgb(45, 22, 122);
/* oklch */ color: oklch(31.1% 0.155 283.3);
Tailwind
colors: {
  custom: {
    50: '#7157a2',
    500: '#2d167a',
    950: '#000000',
  },
}
SCSS
$custom: #2d167a;
$custom-light: #7157a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167a",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 253.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31135,
    "c": 0.15491,
    "h": 283.3
  },
  "luminance": 0.02537
}

Semantic roles & 50–950 ramp

primary
#2D167A
secondary
#95AF3D
accent
#EC3CC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167A

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

Preview Lab → · Contrast checker → · Palette generator →

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