#2D4589#2D4589

#2D4589 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.117 H 266.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#2D4589
RGBrgb(45, 69, 137)
HSLhsl(224, 51%, 36%)
HSVhsv(224, 67%, 54%)
CMYKcmyk(67.2%, 49.6%, 0%, 46.3%)
CIE-LABlab(30.92, 14.31, -40.80)
CIE-LCHlch(30.92, 43.23, 289.33°)
OKLaboklab(40.96% -0.0069 -0.1168)
OKLCHoklch(40.96% 0.117 266.6)
XYZxyz(7.7241, 6.6196, 24.5327)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4589 #89712D
analogous
#2D7389 #2D4589 #432D89
triadic
#2D4589 #892D45 #45892D
tetradic
#2D4589 #892D73 #89712D #2D8943
square
#2D4589 #892D73 #89712D #2D8943
split-complementary
#2D4589 #89432D #73892D
monochromatic
#0F172D #1E2E5B #2D4589 #3C5CB7 #647FCC

Accessibility & contrast

On white

9.04
#2D4589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2D4589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4589
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4589#FFFFFF#000000##FFFFFF
##2D45891.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214D8B
Deuteranopia (green-blind)
#0C4588
Tritanopia (blue-blind)
#005560
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2d4589;
/* rgb */ color: rgb(45, 69, 137);
/* oklch */ color: oklch(41.0% 0.117 266.6);
Tailwind
colors: {
  custom: {
    50: '#7078ac',
    500: '#2d4589',
    950: '#000000',
  },
}
SCSS
$custom: #2d4589;
$custom-light: #7078ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4589",
  "rgb": {
    "r": 45,
    "g": 69,
    "b": 137
  },
  "hsl": {
    "h": 224.348,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40963,
    "c": 0.11703,
    "h": 266.6
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#2D4589
secondary
#B39D5F
accent
#B54EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4589

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

Preview Lab → · Contrast checker → · Palette generator →

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