#2D4F81#2D4F81

#2D4F81 is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.7% C 0.093 H 258.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2D4F81
RGBrgb(45, 79, 129)
HSLhsl(216, 48%, 34%)
HSVhsv(216, 65%, 51%)
CMYKcmyk(65.1%, 38.8%, 0%, 49.4%)
CIE-LABlab(33.42, 4.62, -31.87)
CIE-LCHlch(33.42, 32.20, 278.24°)
OKLaboklab(42.73% -0.0193 -0.0905)
OKLCHoklch(42.73% 0.093 258)
XYZxyz(7.8392, 7.7341, 21.8443)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F81 #815F2D
analogous
#2D7981 #2D4F81 #352D81
triadic
#2D4F81 #812D4F #4F812D
tetradic
#2D4F81 #812D79 #815F2D #2D8135
square
#2D4F81 #812D79 #815F2D #2D8135
split-complementary
#2D4F81 #81352D #79812D
monochromatic
#0D1726 #1D3354 #2D4F81 #3D6BAE #618AC8

Accessibility & contrast

On white

8.24
#2D4F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D4F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F81
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F81#FFFFFF#000000##FFFFFF
##2D4F811.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395383
Deuteranopia (green-blind)
#2E4B80
Tritanopia (blue-blind)
#005A62
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4f81;
/* rgb */ color: rgb(45, 79, 129);
/* oklch */ color: oklch(42.7% 0.093 258.0);
Tailwind
colors: {
  custom: {
    50: '#6f80a6',
    500: '#2d4f81',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f81;
$custom-light: #6f80a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f81",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 129
  },
  "hsl": {
    "h": 215.714,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42727,
    "c": 0.09252,
    "h": 258
  },
  "luminance": 0.07735
}

Semantic roles & 50–950 ramp

primary
#2D4F81
secondary
#AE8D5C
accent
#A150D8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2D4F81

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

Preview Lab → · Contrast checker → · Palette generator →

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