#2D4F87#2D4F87

#2D4F87 is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.1% C 0.101 H 259.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#2D4F87
RGBrgb(45, 79, 135)
HSLhsl(217, 50%, 35%)
HSVhsv(217, 67%, 53%)
CMYKcmyk(66.7%, 41.5%, 0%, 47.1%)
CIE-LABlab(33.77, 6.85, -35.01)
CIE-LCHlch(33.77, 35.68, 281.07°)
OKLaboklab(43.11% -0.0178 -0.0997)
OKLCHoklch(43.11% 0.101 259.9)
XYZxyz(8.2498, 7.8983, 24.0067)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F87 #87652D
analogous
#2D7C87 #2D4F87 #382D87
triadic
#2D4F87 #872D4F #4F872D
tetradic
#2D4F87 #872D7C #87652D #2D8738
square
#2D4F87 #872D7C #87652D #2D8738
split-complementary
#2D4F87 #87382D #7C872D
monochromatic
#0E192B #1E3459 #2D4F87 #3C6AB5 #638BCB

Accessibility & contrast

On white

8.14
#2D4F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2D4F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F87
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F87#FFFFFF#000000##FFFFFF
##2D4F871.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365489
Deuteranopia (green-blind)
#294C86
Tritanopia (blue-blind)
#005C64
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4f87;
/* rgb */ color: rgb(45, 79, 135);
/* oklch */ color: oklch(43.1% 0.101 259.9);
Tailwind
colors: {
  custom: {
    50: '#707faa',
    500: '#2d4f87',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f87;
$custom-light: #707faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f87",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 135
  },
  "hsl": {
    "h": 217.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4311,
    "c": 0.10127,
    "h": 259.9
  },
  "luminance": 0.07899
}

Semantic roles & 50–950 ramp

primary
#2D4F87
secondary
#B2925E
accent
#A54EDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4F87

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

Preview Lab → · Contrast checker → · Palette generator →

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