#2D3387#2D3387

#2D3387 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.138 H 274.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#2D3387
RGBrgb(45, 51, 135)
HSLhsl(236, 50%, 35%)
HSVhsv(236, 67%, 53%)
CMYKcmyk(66.7%, 62.2%, 0%, 47.1%)
CIE-LABlab(25.79, 25.79, -47.87)
CIE-LCHlch(25.79, 54.38, 298.32°)
OKLaboklab(37.05% 0.0104 -0.1379)
OKLCHoklch(37.05% 0.138 274.3)
XYZxyz(6.6377, 4.6742, 23.4694)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3387 #87812D
analogous
#2D6087 #2D3387 #542D87
triadic
#2D3387 #872D33 #33872D
tetradic
#2D3387 #872D60 #87812D #2D8754
square
#2D3387 #872D60 #87812D #2D8754
split-complementary
#2D3387 #87542D #60872D
monochromatic
#0E102B #1E2259 #2D3387 #3C44B5 #636ACB

Accessibility & contrast

On white

10.85
#2D3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2D3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3387
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3387#FFFFFF#000000##FFFFFF
##2D33871.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004858
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d3387;
/* rgb */ color: rgb(45, 51, 135);
/* oklch */ color: oklch(37.1% 0.138 274.3);
Tailwind
colors: {
  custom: {
    50: '#716aab',
    500: '#2d3387',
    950: '#000000',
  },
}
SCSS
$custom: #2d3387;
$custom-light: #716aab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3387",
  "rgb": {
    "r": 45,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 236,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37054,
    "c": 0.13827,
    "h": 274.3
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#2D3387
secondary
#B2AC5E
accent
#D04EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2D3387

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

Preview Lab → · Contrast checker → · Palette generator →

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