#2D186B#2D186B

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

Color values

HEX#2D186B
RGBrgb(45, 24, 107)
HSLhsl(255, 63%, 26%)
HSVhsv(255, 78%, 42%)
CMYKcmyk(57.9%, 77.6%, 0%, 58%)
CIE-LABlab(16.86, 33.19, -44.61)
CIE-LCHlch(16.86, 55.60, 306.65°)
OKLaboklab(29.8% 0.0385 -0.1283)
OKLCHoklch(29.8% 0.134 286.7)
XYZxyz(4.0619, 2.2725, 14.1317)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D186B #566B18
analogous
#182C6B #2D186B #56186B
triadic
#2D186B #6B2D18 #186B2D
tetradic
#2D186B #6B182C #566B18 #186B56
square
#2D186B #6B182C #566B18 #186B56
split-complementary
#2D186B #6B5618 #2C6B18
monochromatic
#0B0619 #180D39 #2D186B #42239D #572ECF

Accessibility & contrast

On white

14.44
#2D186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D186B
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D186B#FFFFFF#000000##FFFFFF
##2D186B1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#122F40
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d186b;
/* rgb */ color: rgb(45, 24, 107);
/* oklch */ color: oklch(29.8% 0.134 286.7);
Tailwind
colors: {
  custom: {
    50: '#6e5796',
    500: '#2d186b',
    950: '#000000',
  },
}
SCSS
$custom: #2d186b;
$custom-light: #6e5796;
$custom-dark: #000000;
JSON
{
  "hex": "#2d186b",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 255.181,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29796,
    "c": 0.13401,
    "h": 286.7
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#2D186B
secondary
#88A13E
accent
#E641BD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D186B

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

Preview Lab → · Contrast checker → · Palette generator →

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