#2D4F88#2D4F88

#2D4F88 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.103 H 260.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2D4F88
RGBrgb(45, 79, 136)
HSLhsl(218, 50%, 35%)
HSVhsv(218, 67%, 53%)
CMYKcmyk(66.9%, 41.9%, 0%, 46.7%)
CIE-LABlab(33.83, 7.23, -35.53)
CIE-LCHlch(33.83, 36.26, 281.50°)
OKLaboklab(43.18% -0.0176 -0.1012)
OKLCHoklch(43.18% 0.103 260.1)
XYZxyz(8.3205, 7.9266, 24.3793)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F88 #88662D
analogous
#2D7C88 #2D4F88 #382D88
triadic
#2D4F88 #882D4F #4F882D
tetradic
#2D4F88 #882D7C #88662D #2D8838
square
#2D4F88 #882D7C #88662D #2D8838
split-complementary
#2D4F88 #88382D #7C882D
monochromatic
#0F1A2C #1E345A #2D4F88 #3C6AB6 #648BCC

Accessibility & contrast

On white

8.12
#2D4F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2D4F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F88
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F88#FFFFFF#000000##FFFFFF
##2D4F881.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35548A
Deuteranopia (green-blind)
#284C87
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d4f88;
/* rgb */ color: rgb(45, 79, 136);
/* oklch */ color: oklch(43.2% 0.103 260.1);
Tailwind
colors: {
  custom: {
    50: '#707fab',
    500: '#2d4f88',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f88;
$custom-light: #707fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f88",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 136
  },
  "hsl": {
    "h": 217.582,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43175,
    "c": 0.10274,
    "h": 260.1
  },
  "luminance": 0.07927
}

Semantic roles & 50–950 ramp

primary
#2D4F88
secondary
#B2935F
accent
#A64EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4F88

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

Preview Lab → · Contrast checker → · Palette generator →

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