#2D4387#2D4387

#2D4387 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.117 H 267.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#2D4387
RGBrgb(45, 67, 135)
HSLhsl(225, 50%, 35%)
HSVhsv(225, 67%, 53%)
CMYKcmyk(66.7%, 50.4%, 0%, 47.1%)
CIE-LABlab(30.21, 14.92, -40.71)
CIE-LCHlch(30.21, 43.36, 290.12°)
OKLaboklab(40.37% -0.0051 -0.1166)
OKLCHoklch(40.37% 0.117 267.5)
XYZxyz(7.4610, 6.3208, 23.7438)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4387 #87712D
analogous
#2D7087 #2D4387 #442D87
triadic
#2D4387 #872D43 #43872D
tetradic
#2D4387 #872D70 #87712D #2D8744
square
#2D4387 #872D70 #87712D #2D8744
split-complementary
#2D4387 #87442D #70872D
monochromatic
#0E152B #1E2C59 #2D4387 #3C5AB5 #637DCB

Accessibility & contrast

On white

9.27
#2D4387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2D4387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4387
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4387#FFFFFF#000000##FFFFFF
##2D43871.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4B89
Deuteranopia (green-blind)
#094386
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2d4387;
/* rgb */ color: rgb(45, 67, 135);
/* oklch */ color: oklch(40.4% 0.117 267.5);
Tailwind
colors: {
  custom: {
    50: '#7076aa',
    500: '#2d4387',
    950: '#000000',
  },
}
SCSS
$custom: #2d4387;
$custom-light: #7076aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4387",
  "rgb": {
    "r": 45,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 225.333,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40373,
    "c": 0.11673,
    "h": 267.5
  },
  "luminance": 0.06321
}

Semantic roles & 50–950 ramp

primary
#2D4387
secondary
#B29D5E
accent
#B74EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4387

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

Preview Lab → · Contrast checker → · Palette generator →

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