#2D3988#2D3988

#2D3988 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.132 H 272.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#2D3988
RGBrgb(45, 57, 136)
HSLhsl(232, 50%, 35%)
HSVhsv(232, 67%, 53%)
CMYKcmyk(66.9%, 58.1%, 0%, 46.7%)
CIE-LABlab(27.47, 22.11, -45.76)
CIE-LCHlch(27.47, 50.82, 295.79°)
OKLaboklab(38.33% 0.0049 -0.1316)
OKLCHoklch(38.33% 0.132 272.1)
XYZxyz(6.9878, 5.2611, 23.9350)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D3988 #887C2D
analogous
#2D6688 #2D3988 #4E2D88
triadic
#2D3988 #882D39 #39882D
tetradic
#2D3988 #882D66 #887C2D #2D884E
square
#2D3988 #882D66 #887C2D #2D884E
split-complementary
#2D3988 #884E2D #66882D
monochromatic
#0F122C #1E265A #2D3988 #3C4CB6 #6471CC

Accessibility & contrast

On white

10.23
#2D3988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2D3988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D3988
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D3988#FFFFFF#000000##FFFFFF
##2D39881.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2d3988;
/* rgb */ color: rgb(45, 57, 136);
/* oklch */ color: oklch(38.3% 0.132 272.1);
Tailwind
colors: {
  custom: {
    50: '#716fab',
    500: '#2d3988',
    950: '#000000',
  },
}
SCSS
$custom: #2d3988;
$custom-light: #716fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d3988",
  "rgb": {
    "r": 45,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 232.088,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38328,
    "c": 0.1317,
    "h": 272.1
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#2D3988
secondary
#B2A75F
accent
#C74EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2D3988

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

Preview Lab → · Contrast checker → · Palette generator →

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