#2D3386#2D3386

#2D3386 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.137 H 274.4°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2D3386
RGBrgb(45, 51, 134)
HSLhsl(236, 50%, 35%)
HSVhsv(236, 66%, 53%)
CMYKcmyk(66.4%, 61.9%, 0%, 47.5%)
CIE-LABlab(25.70, 25.43, -47.38)
CIE-LCHlch(25.70, 53.78, 298.22°)
OKLaboklab(36.97% 0.0105 -0.1364)
OKLCHoklch(36.97% 0.137 274.4)
XYZxyz(6.5677, 4.6462, 23.1003)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3386 #86802D
analogous
#2D6086 #2D3386 #532D86
triadic
#2D3386 #862D33 #33862D
tetradic
#2D3386 #862D60 #86802D #2D8653
square
#2D3386 #862D60 #86802D #2D8653
split-complementary
#2D3386 #86532D #60862D
monochromatic
#0E102A #1E2258 #2D3386 #3C44B4 #636ACB

Accessibility & contrast

On white

10.88
#2D3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3386
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3386#FFFFFF#000000##FFFFFF
##2D33861.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003984
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d3386;
/* rgb */ color: rgb(45, 51, 134);
/* oklch */ color: oklch(37.0% 0.137 274.4);
Tailwind
colors: {
  custom: {
    50: '#716aaa',
    500: '#2d3386',
    950: '#000000',
  },
}
SCSS
$custom: #2d3386;
$custom-light: #716aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3386",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 235.955,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36966,
    "c": 0.13685,
    "h": 274.4
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#2D3386
secondary
#B1AB5E
accent
#D04FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2D3386

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

Preview Lab → · Contrast checker → · Palette generator →

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