#2D3786#2D3786

#2D3786 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.8% C 0.131 H 272.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2D3786
RGBrgb(45, 55, 134)
HSLhsl(233, 50%, 35%)
HSVhsv(233, 66%, 53%)
CMYKcmyk(66.4%, 59%, 0%, 47.5%)
CIE-LABlab(26.77, 22.72, -45.65)
CIE-LCHlch(26.77, 51.00, 296.46°)
OKLaboklab(37.76% 0.0067 -0.1313)
OKLCHoklch(37.76% 0.131 272.9)
XYZxyz(6.7500, 5.0109, 23.1611)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3786 #867C2D
analogous
#2D6486 #2D3786 #4F2D86
triadic
#2D3786 #862D37 #37862D
tetradic
#2D3786 #862D64 #867C2D #2D864F
square
#2D3786 #862D64 #867C2D #2D864F
split-complementary
#2D3786 #864F2D #64862D
monochromatic
#0E112A #1E2458 #2D3786 #3C4AB4 #636ECB

Accessibility & contrast

On white

10.49
#2D3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2D3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3786
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3786#FFFFFF#000000##FFFFFF
##2D37861.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003B84
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d3786;
/* rgb */ color: rgb(45, 55, 134);
/* oklch */ color: oklch(37.8% 0.131 272.9);
Tailwind
colors: {
  custom: {
    50: '#716daa',
    500: '#2d3786',
    950: '#000000',
  },
}
SCSS
$custom: #2d3786;
$custom-light: #716daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3786",
  "rgb": {
    "r": 45,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 233.258,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37756,
    "c": 0.13149,
    "h": 272.9
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#2D3786
secondary
#B1A85E
accent
#CA4FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3786

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

Preview Lab → · Contrast checker → · Palette generator →

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