#2D4E81#2D4E81

#2D4E81 is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.094 H 258.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2D4E81
RGBrgb(45, 78, 129)
HSLhsl(216, 48%, 34%)
HSVhsv(216, 65%, 51%)
CMYKcmyk(65.1%, 39.5%, 0%, 49.4%)
CIE-LABlab(33.12, 5.27, -32.36)
CIE-LCHlch(33.12, 32.78, 279.26°)
OKLaboklab(42.49% -0.0182 -0.0919)
OKLCHoklch(42.49% 0.094 258.8)
XYZxyz(7.7676, 7.5909, 21.8205)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E81 #81602D
analogous
#2D7881 #2D4E81 #362D81
triadic
#2D4E81 #812D4E #4E812D
tetradic
#2D4E81 #812D78 #81602D #2D8136
square
#2D4E81 #812D78 #81602D #2D8136
split-complementary
#2D4E81 #81362D #78812D
monochromatic
#0D1726 #1D3354 #2D4E81 #3D69AE #6189C8

Accessibility & contrast

On white

8.34
#2D4E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D4E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E81
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E81#FFFFFF#000000##FFFFFF
##2D4E811.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385283
Deuteranopia (green-blind)
#2C4A80
Tritanopia (blue-blind)
#005A61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d4e81;
/* rgb */ color: rgb(45, 78, 129);
/* oklch */ color: oklch(42.5% 0.094 258.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fa6',
    500: '#2d4e81',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e81;
$custom-light: #6f7fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e81",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 129
  },
  "hsl": {
    "h": 216.429,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42488,
    "c": 0.0937,
    "h": 258.8
  },
  "luminance": 0.07592
}

Semantic roles & 50–950 ramp

primary
#2D4E81
secondary
#AE8E5C
accent
#A250D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4E81

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

Preview Lab → · Contrast checker → · Palette generator →

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