#2D167F#2D167F

#2D167F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.161 H 282.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2D167F
RGBrgb(45, 22, 127)
HSLhsl(253, 70%, 29%)
HSVhsv(253, 83%, 50%)
CMYKcmyk(64.6%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.64, 40.47, -54.55)
CIE-LCHlch(18.64, 67.93, 306.57°)
OKLaboklab(31.69% 0.0339 -0.1574)
OKLCHoklch(31.69% 0.161 282.2)
XYZxyz(5.1987, 2.6636, 20.3147)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167F #687F16
analogous
#16347F #2D167F #62167F
triadic
#2D167F #7F2D16 #167F2D
tetradic
#2D167F #7F1634 #687F16 #167F62
square
#2D167F #7F1634 #687F16 #167F62
split-complementary
#2D167F #7F6216 #347F16
monochromatic
#09051A #1B0D4B #2D167F #3F1FB3 #5834DC

Accessibility & contrast

On white

13.70
#2D167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D167F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167F#FFFFFF#000000##FFFFFF
##2D167F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d167f;
/* rgb */ color: rgb(45, 22, 127);
/* oklch */ color: oklch(31.7% 0.161 282.2);
Tailwind
colors: {
  custom: {
    50: '#7257a5',
    500: '#2d167f',
    950: '#000000',
  },
}
SCSS
$custom: #2d167f;
$custom-light: #7257a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167f",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 253.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31691,
    "c": 0.16099,
    "h": 282.2
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2D167F
secondary
#9AB43D
accent
#ED3BC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167F

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

Preview Lab → · Contrast checker → · Palette generator →

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