#2D3986#2D3986

#2D3986 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.129 H 272.1°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#2D3986
RGBrgb(45, 57, 134)
HSLhsl(232, 50%, 35%)
HSVhsv(232, 66%, 53%)
CMYKcmyk(66.4%, 57.5%, 0%, 47.5%)
CIE-LABlab(27.31, 21.36, -44.77)
CIE-LCHlch(27.31, 49.61, 295.51°)
OKLaboklab(38.16% 0.0048 -0.1287)
OKLCHoklch(38.16% 0.129 272.1)
XYZxyz(6.8470, 5.2048, 23.1934)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3986 #867A2D
analogous
#2D6686 #2D3986 #4D2D86
triadic
#2D3986 #862D39 #39862D
tetradic
#2D3986 #862D66 #867A2D #2D864D
square
#2D3986 #862D66 #867A2D #2D864D
split-complementary
#2D3986 #864D2D #66862D
monochromatic
#0E122A #1E2658 #2D3986 #3C4CB4 #6371CB

Accessibility & contrast

On white

10.29
#2D3986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2D3986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3986
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3986#FFFFFF#000000##FFFFFF
##2D39861.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2d3986;
/* rgb */ color: rgb(45, 57, 134);
/* oklch */ color: oklch(38.2% 0.129 272.1);
Tailwind
colors: {
  custom: {
    50: '#716faa',
    500: '#2d3986',
    950: '#000000',
  },
}
SCSS
$custom: #2d3986;
$custom-light: #716faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3986",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 231.91,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38162,
    "c": 0.12879,
    "h": 272.1
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#2D3986
secondary
#B1A65E
accent
#C74FD9
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3986

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

Preview Lab → · Contrast checker → · Palette generator →

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