#2D166F#2D166F

#2D166F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.141 H 286.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#2D166F
RGBrgb(45, 22, 111)
HSLhsl(256, 67%, 26%)
HSVhsv(256, 80%, 44%)
CMYKcmyk(59.5%, 80.2%, 0%, 56.5%)
CIE-LABlab(16.89, 35.53, -47.16)
CIE-LCHlch(16.89, 59.05, 306.99°)
OKLaboklab(29.95% 0.039 -0.1358)
OKLCHoklch(29.95% 0.141 286)
XYZxyz(4.2375, 2.2792, 15.2525)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D166F #586F16
analogous
#162B6F #2D166F #59166F
triadic
#2D166F #6F2D16 #166F2D
tetradic
#2D166F #6F162B #586F16 #166F59
square
#2D166F #6F162B #586F16 #166F59
split-complementary
#2D166F #6F5916 #2B6F16
monochromatic
#0A051A #180C3C #2D166F #4220A2 #572BD5

Accessibility & contrast

On white

14.43
#2D166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D166F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D166F#FFFFFF#000000##FFFFFF
##2D166F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D2F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d166f;
/* rgb */ color: rgb(45, 22, 111);
/* oklch */ color: oklch(29.9% 0.141 286.0);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2d166f',
    950: '#000000',
  },
}
SCSS
$custom: #2d166f;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2d166f",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 255.506,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29945,
    "c": 0.14131,
    "h": 286
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#2D166F
secondary
#8AA53C
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D166F

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

Preview Lab → · Contrast checker → · Palette generator →

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