#2D167E#2D167E

#2D167E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.160 H 282.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2D167E
RGBrgb(45, 22, 126)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 83%, 49%)
CMYKcmyk(64.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(18.53, 40.17, -54.10)
CIE-LCHlch(18.53, 67.38, 306.59°)
OKLaboklab(31.58% 0.0343 -0.1561)
OKLCHoklch(31.58% 0.16 282.4)
XYZxyz(5.1338, 2.6377, 19.9732)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167E #677E16
analogous
#16337E #2D167E #61167E
triadic
#2D167E #7E2D16 #167E2D
tetradic
#2D167E #7E1633 #677E16 #167E61
square
#2D167E #7E1633 #677E16 #167E61
split-complementary
#2D167E #7E6116 #337E16
monochromatic
#09051A #1A0D4A #2D167E #401FB2 #5833DB

Accessibility & contrast

On white

13.75
#2D167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2D167E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D167E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167E#FFFFFF#000000##FFFFFF
##2D167E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d167e;
/* rgb */ color: rgb(45, 22, 126);
/* oklch */ color: oklch(31.6% 0.160 282.4);
Tailwind
colors: {
  custom: {
    50: '#7257a4',
    500: '#2d167e',
    950: '#000000',
  },
}
SCSS
$custom: #2d167e;
$custom-light: #7257a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167e",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 253.269,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31579,
    "c": 0.15978,
    "h": 282.4
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#2D167E
secondary
#99B33D
accent
#ED3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167E

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

Preview Lab → · Contrast checker → · Palette generator →

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