#2D4D8B#2D4D8B

#2D4D8B is a dark, moderate blue. Relative luminance 0.077; OKLCH L 42.9% C 0.110 H 262.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#2D4D8B
RGBrgb(45, 77, 139)
HSLhsl(220, 51%, 36%)
HSVhsv(220, 68%, 55%)
CMYKcmyk(67.6%, 44.6%, 0%, 45.5%)
CIE-LABlab(33.41, 9.69, -38.04)
CIE-LCHlch(33.41, 39.25, 284.29°)
OKLaboklab(42.91% -0.0148 -0.1086)
OKLCHoklch(42.91% 0.11 262.2)
XYZxyz(8.3946, 7.7289, 25.4705)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4D8B #8B6B2D
analogous
#2D7C8B #2D4D8B #3C2D8B
triadic
#2D4D8B #8B2D4D #4D8B2D
tetradic
#2D4D8B #8B2D7C #8B6B2D #2D8B3C
square
#2D4D8B #8B2D7C #8B6B2D #2D8B3C
split-complementary
#2D4D8B #8B3C2D #7C8B2D
monochromatic
#0F1A2F #1E335D #2D4D8B #3C67B9 #6589CD

Accessibility & contrast

On white

8.25
#2D4D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2D4D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4D8B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4D8B#FFFFFF#000000##FFFFFF
##2D4D8B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30538D
Deuteranopia (green-blind)
#204B8A
Tritanopia (blue-blind)
#005B65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2d4d8b;
/* rgb */ color: rgb(45, 77, 139);
/* oklch */ color: oklch(42.9% 0.110 262.2);
Tailwind
colors: {
  custom: {
    50: '#717ead',
    500: '#2d4d8b',
    950: '#000000',
  },
}
SCSS
$custom: #2d4d8b;
$custom-light: #717ead;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4d8b",
  "rgb": {
    "r": 45,
    "g": 77,
    "b": 139
  },
  "hsl": {
    "h": 219.574,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.10961,
    "h": 262.2
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#2D4D8B
secondary
#B49760
accent
#AA4DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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