#2D487F#2D487F

#2D487F is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.098 H 263.0°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#2D487F
RGBrgb(45, 72, 127)
HSLhsl(220, 48%, 34%)
HSVhsv(220, 65%, 50%)
CMYKcmyk(64.6%, 43.3%, 0%, 50.2%)
CIE-LABlab(31.17, 8.52, -34.21)
CIE-LCHlch(31.17, 35.25, 283.99°)
OKLaboklab(40.94% -0.0119 -0.0974)
OKLCHoklch(40.94% 0.098 263)
XYZxyz(7.2290, 6.7243, 20.9915)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D487F #7F642D
analogous
#2D717F #2D487F #3B2D7F
triadic
#2D487F #7F2D48 #487F2D
tetradic
#2D487F #7F2D71 #7F642D #2D7F3B
square
#2D487F #7F2D71 #7F642D #2D7F3B
split-complementary
#2D487F #7F3B2D #717F2D
monochromatic
#0D1525 #1D2E52 #2D487F #3D62AC #6082C7

Accessibility & contrast

On white

8.96
#2D487F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2D487F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D487F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D487F#FFFFFF#000000##FFFFFF
##2D487F1.008.962.358.96
#FFFFFF8.961.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D81
Deuteranopia (green-blind)
#23467E
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d487f;
/* rgb */ color: rgb(45, 72, 127);
/* oklch */ color: oklch(40.9% 0.098 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e7aa4',
    500: '#2d487f',
    950: '#000000',
  },
}
SCSS
$custom: #2d487f;
$custom-light: #6e7aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d487f",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 127
  },
  "hsl": {
    "h": 220.244,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40944,
    "c": 0.09815,
    "h": 263
  },
  "luminance": 0.06725
}

Semantic roles & 50–950 ramp

primary
#2D487F
secondary
#AD925B
accent
#AB51D7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2D487F

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

Preview Lab → · Contrast checker → · Palette generator →

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