#2D4581#2D4581

#2D4581 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.4% C 0.105 H 265.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#2D4581
RGBrgb(45, 69, 129)
HSLhsl(223, 48%, 34%)
HSVhsv(223, 65%, 51%)
CMYKcmyk(65.1%, 46.5%, 0%, 49.4%)
CIE-LABlab(30.40, 11.30, -36.69)
CIE-LCHlch(30.40, 38.39, 287.11°)
OKLaboklab(40.39% -0.0082 -0.1048)
OKLCHoklch(40.39% 0.105 265.5)
XYZxyz(7.1714, 6.3985, 21.6217)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4581 #81692D
analogous
#2D6F81 #2D4581 #3F2D81
triadic
#2D4581 #812D45 #45812D
tetradic
#2D4581 #812D6F #81692D #2D813F
square
#2D4581 #812D6F #81692D #2D813F
split-complementary
#2D4581 #813F2D #6F812D
monochromatic
#0D1426 #1D2D54 #2D4581 #3D5DAE #617EC8

Accessibility & contrast

On white

9.21
#2D4581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2D4581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4581
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4581#FFFFFF#000000##FFFFFF
##2D45811.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284C83
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4581;
/* rgb */ color: rgb(45, 69, 129);
/* oklch */ color: oklch(40.4% 0.105 265.5);
Tailwind
colors: {
  custom: {
    50: '#6f78a6',
    500: '#2d4581',
    950: '#000000',
  },
}
SCSS
$custom: #2d4581;
$custom-light: #6f78a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4581",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 129
  },
  "hsl": {
    "h": 222.857,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40388,
    "c": 0.10508,
    "h": 265.5
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#2D4581
secondary
#AE975C
accent
#B150D8
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2D4581

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

Preview Lab → · Contrast checker → · Palette generator →

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