#2D4C81#2D4C81

#2D4C81 is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.0% C 0.096 H 260.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2D4C81
RGBrgb(45, 76, 129)
HSLhsl(218, 48%, 34%)
HSVhsv(218, 65%, 51%)
CMYKcmyk(65.1%, 41.1%, 0%, 49.4%)
CIE-LABlab(32.50, 6.60, -33.33)
CIE-LCHlch(32.50, 33.97, 281.20°)
OKLaboklab(42.01% -0.0159 -0.0948)
OKLCHoklch(42.01% 0.096 260.5)
XYZxyz(7.6277, 7.3110, 21.7738)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C81 #81622D
analogous
#2D7681 #2D4C81 #382D81
triadic
#2D4C81 #812D4C #4C812D
tetradic
#2D4C81 #812D76 #81622D #2D8138
square
#2D4C81 #812D76 #81622D #2D8138
split-complementary
#2D4C81 #81382D #76812D
monochromatic
#0D1726 #1D3154 #2D4C81 #3D67AE #6187C8

Accessibility & contrast

On white

8.53
#2D4C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2D4C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C81
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C81#FFFFFF#000000##FFFFFF
##2D4C811.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355183
Deuteranopia (green-blind)
#294980
Tritanopia (blue-blind)
#005860
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2d4c81;
/* rgb */ color: rgb(45, 76, 129);
/* oklch */ color: oklch(42.0% 0.096 260.5);
Tailwind
colors: {
  custom: {
    50: '#6f7da6',
    500: '#2d4c81',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c81;
$custom-light: #6f7da6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c81",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 129
  },
  "hsl": {
    "h": 217.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42014,
    "c": 0.09612,
    "h": 260.5
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#2D4C81
secondary
#AE905C
accent
#A650D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2D4C81

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

Preview Lab → · Contrast checker → · Palette generator →

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