#2D4789#2D4789

#2D4789 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.4% C 0.114 H 265.5°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#2D4789
RGBrgb(45, 71, 137)
HSLhsl(223, 51%, 36%)
HSVhsv(223, 67%, 54%)
CMYKcmyk(67.2%, 48.2%, 0%, 46.3%)
CIE-LABlab(31.51, 12.96, -39.86)
CIE-LCHlch(31.51, 41.91, 288.01°)
OKLaboklab(41.41% -0.0089 -0.114)
OKLCHoklch(41.41% 0.114 265.5)
XYZxyz(7.8492, 6.8698, 24.5744)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4789 #896F2D
analogous
#2D7589 #2D4789 #412D89
triadic
#2D4789 #892D47 #47892D
tetradic
#2D4789 #892D75 #896F2D #2D8941
square
#2D4789 #892D75 #896F2D #2D8941
split-complementary
#2D4789 #89412D #75892D
monochromatic
#0F172D #1E2F5B #2D4789 #3C5FB7 #6482CC

Accessibility & contrast

On white

8.85
#2D4789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4789
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4789#FFFFFF#000000##FFFFFF
##2D47891.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264F8B
Deuteranopia (green-blind)
#144688
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d4789;
/* rgb */ color: rgb(45, 71, 137);
/* oklch */ color: oklch(41.4% 0.114 265.5);
Tailwind
colors: {
  custom: {
    50: '#7079ac',
    500: '#2d4789',
    950: '#000000',
  },
}
SCSS
$custom: #2d4789;
$custom-light: #7079ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4789",
  "rgb": {
    "r": 45,
    "g": 71,
    "b": 137
  },
  "hsl": {
    "h": 223.043,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41408,
    "c": 0.11439,
    "h": 265.5
  },
  "luminance": 0.06871
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4789

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

Preview Lab → · Contrast checker → · Palette generator →

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