#2D4F8D#2D4F8D

#2D4F8D is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.110 H 261.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2D4F8D
RGBrgb(45, 79, 141)
HSLhsl(219, 52%, 36%)
HSVhsv(219, 68%, 55%)
CMYKcmyk(68.1%, 44%, 0%, 44.7%)
CIE-LABlab(34.13, 9.11, -38.11)
CIE-LCHlch(34.13, 39.18, 283.44°)
OKLaboklab(43.51% -0.0165 -0.1088)
OKLCHoklch(43.51% 0.11 261.4)
XYZxyz(8.6842, 8.0721, 26.2945)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F8D #8D6B2D
analogous
#2D7F8D #2D4F8D #3B2D8D
triadic
#2D4F8D #8D2D4F #4F8D2D
tetradic
#2D4F8D #8D2D7F #8D6B2D #2D8D3B
square
#2D4F8D #8D2D7F #8D6B2D #2D8D3B
split-complementary
#2D4F8D #8D3B2D #7F8D2D
monochromatic
#0F1B30 #1E355F #2D4F8D #3C69BB #668BCE

Accessibility & contrast

On white

8.03
#2D4F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2D4F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F8D
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F8D#FFFFFF#000000##FFFFFF
##2D4F8D1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32558F
Deuteranopia (green-blind)
#224C8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d4f8d;
/* rgb */ color: rgb(45, 79, 141);
/* oklch */ color: oklch(43.5% 0.110 261.4);
Tailwind
colors: {
  custom: {
    50: '#717faf',
    500: '#2d4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f8d;
$custom-light: #717faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f8d",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 218.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43507,
    "c": 0.11003,
    "h": 261.4
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#2D4F8D
secondary
#B59761
accent
#A94DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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