#2D166E#2D166E

#2D166E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.140 H 286.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2D166E
RGBrgb(45, 22, 110)
HSLhsl(256, 67%, 26%)
HSVhsv(256, 80%, 43%)
CMYKcmyk(59.1%, 80%, 0%, 56.9%)
CIE-LABlab(16.78, 35.22, -46.69)
CIE-LCHlch(16.78, 58.48, 307.03°)
OKLaboklab(29.84% 0.0393 -0.1344)
OKLCHoklch(29.84% 0.14 286.3)
XYZxyz(4.1827, 2.2573, 14.9641)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D166E #576E16
analogous
#162B6E #2D166E #59166E
triadic
#2D166E #6E2D16 #166E2D
tetradic
#2D166E #6E162B #576E16 #166E59
square
#2D166E #6E162B #576E16 #166E59
split-complementary
#2D166E #6E5916 #2B6E16
monochromatic
#0A051A #180C3B #2D166E #4220A1 #572AD4

Accessibility & contrast

On white

14.47
#2D166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D166E
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D166E#FFFFFF#000000##FFFFFF
##2D166E1.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#0E2F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d166e;
/* rgb */ color: rgb(45, 22, 110);
/* oklch */ color: oklch(29.8% 0.140 286.3);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2d166e',
    950: '#000000',
  },
}
SCSS
$custom: #2d166e;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2d166e",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 255.682,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29839,
    "c": 0.14006,
    "h": 286.3
  },
  "luminance": 0.02257
}

Semantic roles & 50–950 ramp

primary
#2D166E
secondary
#89A43C
accent
#EA3EBD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D166E

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

Preview Lab → · Contrast checker → · Palette generator →

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