#2D4987#2D4987

#2D4987 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.7% C 0.109 H 264.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2D4987
RGBrgb(45, 73, 135)
HSLhsl(221, 50%, 35%)
HSVhsv(221, 67%, 53%)
CMYKcmyk(66.7%, 45.9%, 0%, 47.1%)
CIE-LABlab(31.97, 10.86, -37.89)
CIE-LCHlch(31.97, 39.41, 285.99°)
OKLaboklab(41.72% -0.0114 -0.1082)
OKLCHoklch(41.72% 0.109 264)
XYZxyz(7.8364, 7.0715, 23.8689)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4987 #876B2D
analogous
#2D7687 #2D4987 #3E2D87
triadic
#2D4987 #872D49 #49872D
tetradic
#2D4987 #872D76 #876B2D #2D873E
square
#2D4987 #872D76 #876B2D #2D873E
split-complementary
#2D4987 #873E2D #76872D
monochromatic
#0E172B #1E3059 #2D4987 #3C62B5 #6384CB

Accessibility & contrast

On white

8.70
#2D4987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2D4987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4987
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4987#FFFFFF#000000##FFFFFF
##2D49871.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5089
Deuteranopia (green-blind)
#1C4786
Tritanopia (blue-blind)
#005761
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4987;
/* rgb */ color: rgb(45, 73, 135);
/* oklch */ color: oklch(41.7% 0.109 264.0);
Tailwind
colors: {
  custom: {
    50: '#707baa',
    500: '#2d4987',
    950: '#000000',
  },
}
SCSS
$custom: #2d4987;
$custom-light: #707baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4987",
  "rgb": {
    "r": 45,
    "g": 73,
    "b": 135
  },
  "hsl": {
    "h": 221.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4172,
    "c": 0.10882,
    "h": 264
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#2D4987
secondary
#B2985E
accent
#AE4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4987

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

Preview Lab → · Contrast checker → · Palette generator →

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