#2D4C8B#2D4C8B

#2D4C8B is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.7% C 0.111 H 262.9°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#2D4C8B
RGBrgb(45, 76, 139)
HSLhsl(220, 51%, 36%)
HSVhsv(220, 68%, 55%)
CMYKcmyk(67.6%, 45.3%, 0%, 45.5%)
CIE-LABlab(33.11, 10.35, -38.51)
CIE-LCHlch(33.11, 39.88, 285.05°)
OKLaboklab(42.68% -0.0138 -0.11)
OKLCHoklch(42.68% 0.111 262.9)
XYZxyz(8.3252, 7.5901, 25.4474)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4C8B #8B6C2D
analogous
#2D7B8B #2D4C8B #3D2D8B
triadic
#2D4C8B #8B2D4C #4C8B2D
tetradic
#2D4C8B #8B2D7B #8B6C2D #2D8B3D
square
#2D4C8B #8B2D7B #8B6C2D #2D8B3D
split-complementary
#2D4C8B #8B3D2D #7B8B2D
monochromatic
#0F192F #1E335D #2D4C8B #3C65B9 #6587CD

Accessibility & contrast

On white

8.34
#2D4C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#2D4C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4C8B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4C8B#FFFFFF#000000##FFFFFF
##2D4C8B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4c8b;
/* rgb */ color: rgb(45, 76, 139);
/* oklch */ color: oklch(42.7% 0.111 262.9);
Tailwind
colors: {
  custom: {
    50: '#717dad',
    500: '#2d4c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d4c8b;
$custom-light: #717dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4c8b",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 220.213,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42682,
    "c": 0.11088,
    "h": 262.9
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

primary
#2D4C8B
secondary
#B49860
accent
#AC4DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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