#2D4F8A#2D4F8A

#2D4F8A is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.3% C 0.106 H 260.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#2D4F8A
RGBrgb(45, 79, 138)
HSLhsl(218, 51%, 36%)
HSVhsv(218, 67%, 54%)
CMYKcmyk(67.4%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.95, 7.98, -36.57)
CIE-LCHlch(33.95, 37.43, 282.31°)
OKLaboklab(43.31% -0.0171 -0.1042)
OKLCHoklch(43.31% 0.106 260.7)
XYZxyz(8.4640, 7.9840, 25.1348)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F8A #8A682D
analogous
#2D7D8A #2D4F8A #392D8A
triadic
#2D4F8A #8A2D4F #4F8A2D
tetradic
#2D4F8A #8A2D7D #8A682D #2D8A39
square
#2D4F8A #8A2D7D #8A682D #2D8A39
split-complementary
#2D4F8A #8A392D #7D8A2D
monochromatic
#0F1A2E #1E355C #2D4F8A #3C69B8 #658BCD

Accessibility & contrast

On white

8.09
#2D4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2D4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F8A
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F8A#FFFFFF#000000##FFFFFF
##2D4F8A1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548C
Deuteranopia (green-blind)
#264C89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2d4f8a;
/* rgb */ color: rgb(45, 79, 138);
/* oklch */ color: oklch(43.3% 0.106 260.7);
Tailwind
colors: {
  custom: {
    50: '#707fac',
    500: '#2d4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f8a;
$custom-light: #707fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f8a",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 218.065,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43307,
    "c": 0.10565,
    "h": 260.7
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#2D4F8A
secondary
#B39560
accent
#A74DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2D4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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