#2D167D#2D167D

#2D167D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.159 H 282.6°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2D167D
RGBrgb(45, 22, 125)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(64%, 82.4%, 0%, 51%)
CIE-LABlab(18.42, 39.86, -53.65)
CIE-LCHlch(18.42, 66.84, 306.61°)
OKLaboklab(31.47% 0.0346 -0.1547)
OKLCHoklch(31.47% 0.159 282.6)
XYZxyz(5.0696, 2.6120, 19.6351)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167D #667D16
analogous
#16337D #2D167D #61167D
triadic
#2D167D #7D2D16 #167D2D
tetradic
#2D167D #7D1633 #667D16 #167D61
square
#2D167D #7D1633 #667D16 #167D61
split-complementary
#2D167D #7D6116 #337D16
monochromatic
#09051A #1A0D49 #2D167D #401FB1 #5832DB

Accessibility & contrast

On white

13.79
#2D167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2D167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D167D
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167D#FFFFFF#000000##FFFFFF
##2D167D1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d167d;
/* rgb */ color: rgb(45, 22, 125);
/* oklch */ color: oklch(31.5% 0.159 282.6);
Tailwind
colors: {
  custom: {
    50: '#7257a4',
    500: '#2d167d',
    950: '#000000',
  },
}
SCSS
$custom: #2d167d;
$custom-light: #7257a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167d",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 253.398,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31468,
    "c": 0.15857,
    "h": 282.6
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#2D167D
secondary
#98B23D
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167D

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

Preview Lab → · Contrast checker → · Palette generator →

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