#2D167C#2D167C

#2D167C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.157 H 282.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2D167C
RGBrgb(45, 22, 124)
HSLhsl(254, 70%, 29%)
HSVhsv(254, 82%, 49%)
CMYKcmyk(63.7%, 82.3%, 0%, 51.4%)
CIE-LABlab(18.31, 39.55, -53.20)
CIE-LCHlch(18.31, 66.29, 306.63°)
OKLaboklab(31.36% 0.0349 -0.1534)
OKLCHoklch(31.36% 0.157 282.8)
XYZxyz(5.0061, 2.5866, 19.3003)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167C #657C16
analogous
#16327C #2D167C #60167C
triadic
#2D167C #7C2D16 #167C2D
tetradic
#2D167C #7C1632 #657C16 #167C60
square
#2D167C #7C1632 #657C16 #167C60
split-complementary
#2D167C #7C6016 #327C16
monochromatic
#09051A #1A0D48 #2D167C #401FB0 #5832DB

Accessibility & contrast

On white

13.84
#2D167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D167C
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167C#FFFFFF#000000##FFFFFF
##2D167C1.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00297A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d167c;
/* rgb */ color: rgb(45, 22, 124);
/* oklch */ color: oklch(31.4% 0.157 282.8);
Tailwind
colors: {
  custom: {
    50: '#7157a3',
    500: '#2d167c',
    950: '#000000',
  },
}
SCSS
$custom: #2d167c;
$custom-light: #7157a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167c",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 253.529,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31357,
    "c": 0.15736,
    "h": 282.8
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#2D167C
secondary
#97B13D
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167C

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

Preview Lab → · Contrast checker → · Palette generator →

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