#2D167B#2D167B

#2D167B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.156 H 283.0°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#2D167B
RGBrgb(45, 22, 123)
HSLhsl(254, 70%, 28%)
HSVhsv(254, 82%, 48%)
CMYKcmyk(63.4%, 82.1%, 0%, 51.8%)
CIE-LABlab(18.19, 39.25, -52.75)
CIE-LCHlch(18.19, 65.74, 306.65°)
OKLaboklab(31.25% 0.0352 -0.1521)
OKLCHoklch(31.25% 0.156 283)
XYZxyz(4.9431, 2.5614, 18.9690)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D167B #647B16
analogous
#16327B #2D167B #5F167B
triadic
#2D167B #7B2D16 #167B2D
tetradic
#2D167B #7B1632 #647B16 #167B5F
square
#2D167B #7B1632 #647B16 #167B5F
split-complementary
#2D167B #7B5F16 #327B16
monochromatic
#09051A #1A0D47 #2D167B #401FAF #5831DA

Accessibility & contrast

On white

13.89
#2D167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D167B
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D167B#FFFFFF#000000##FFFFFF
##2D167B1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002979
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2d167b;
/* rgb */ color: rgb(45, 22, 123);
/* oklch */ color: oklch(31.2% 0.156 283.0);
Tailwind
colors: {
  custom: {
    50: '#7157a2',
    500: '#2d167b',
    950: '#000000',
  },
}
SCSS
$custom: #2d167b;
$custom-light: #7157a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d167b",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 253.663,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31246,
    "c": 0.15613,
    "h": 283
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#2D167B
secondary
#96B03D
accent
#EC3BC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D167B

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

Preview Lab → · Contrast checker → · Palette generator →

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