#2D4C8A#2D4C8A

#2D4C8A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.6% C 0.109 H 262.7°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2D4C8A
RGBrgb(45, 76, 138)
HSLhsl(220, 51%, 36%)
HSVhsv(220, 67%, 54%)
CMYKcmyk(67.4%, 44.9%, 0%, 45.9%)
CIE-LABlab(33.05, 9.98, -38.00)
CIE-LCHlch(33.05, 39.29, 284.71°)
OKLaboklab(42.61% -0.014 -0.1085)
OKLCHoklch(42.61% 0.109 262.7)
XYZxyz(8.2525, 7.5610, 25.0643)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C8A #8A6B2D
analogous
#2D7A8A #2D4C8A #3C2D8A
triadic
#2D4C8A #8A2D4C #4C8A2D
tetradic
#2D4C8A #8A2D7A #8A6B2D #2D8A3C
square
#2D4C8A #8A2D7A #8A6B2D #2D8A3C
split-complementary
#2D4C8A #8A3C2D #7A8A2D
monochromatic
#0F192E #1E335C #2D4C8A #3C65B8 #6587CD

Accessibility & contrast

On white

8.36
#2D4C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2D4C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C8A
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C8A#FFFFFF#000000##FFFFFF
##2D4C8A1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528C
Deuteranopia (green-blind)
#1F4A89
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2d4c8a;
/* rgb */ color: rgb(45, 76, 138);
/* oklch */ color: oklch(42.6% 0.109 262.7);
Tailwind
colors: {
  custom: {
    50: '#707dac',
    500: '#2d4c8a',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c8a;
$custom-light: #707dac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c8a",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 138
  },
  "hsl": {
    "h": 220,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.10941,
    "h": 262.7
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#2D4C8A
secondary
#B39760
accent
#AB4DDA
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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