#2D4788#2D4788

#2D4788 is a dark, moderate blue. Relative luminance 0.068; OKLCH L 41.3% C 0.113 H 265.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2D4788
RGBrgb(45, 71, 136)
HSLhsl(223, 50%, 35%)
HSVhsv(223, 67%, 53%)
CMYKcmyk(66.9%, 47.8%, 0%, 46.7%)
CIE-LABlab(31.44, 12.58, -39.35)
CIE-LCHlch(31.44, 41.31, 287.73°)
OKLaboklab(41.34% -0.0091 -0.1125)
OKLCHoklch(41.34% 0.113 265.4)
XYZxyz(7.7778, 6.8412, 24.1984)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4788 #886E2D
analogous
#2D7488 #2D4788 #402D88
triadic
#2D4788 #882D47 #47882D
tetradic
#2D4788 #882D74 #886E2D #2D8840
square
#2D4788 #882D74 #886E2D #2D8840
split-complementary
#2D4788 #88402D #74882D
monochromatic
#0F172C #1E2F5A #2D4788 #3C5FB6 #6481CC

Accessibility & contrast

On white

8.87
#2D4788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D4788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4788
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4788#FFFFFF#000000##FFFFFF
##2D47881.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274E8A
Deuteranopia (green-blind)
#154687
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d4788;
/* rgb */ color: rgb(45, 71, 136);
/* oklch */ color: oklch(41.3% 0.113 265.4);
Tailwind
colors: {
  custom: {
    50: '#7079ab',
    500: '#2d4788',
    950: '#000000',
  },
}
SCSS
$custom: #2d4788;
$custom-light: #7079ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4788",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 136
  },
  "hsl": {
    "h": 222.857,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41337,
    "c": 0.11291,
    "h": 265.4
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#2D4788
secondary
#B29A5F
accent
#B24EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4788

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

Preview Lab → · Contrast checker → · Palette generator →

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