#2D4487#2D4487

#2D4487 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.6% C 0.115 H 266.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2D4487
RGBrgb(45, 68, 135)
HSLhsl(225, 50%, 35%)
HSVhsv(225, 67%, 53%)
CMYKcmyk(66.7%, 49.6%, 0%, 47.1%)
CIE-LABlab(30.50, 14.24, -40.25)
CIE-LCHlch(30.50, 42.69, 289.48°)
OKLaboklab(40.59% -0.0061 -0.1152)
OKLCHoklch(40.59% 0.115 266.9)
XYZxyz(7.5210, 6.4407, 23.7638)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4487 #87702D
analogous
#2D7187 #2D4487 #432D87
triadic
#2D4487 #872D44 #44872D
tetradic
#2D4487 #872D71 #87702D #2D8743
square
#2D4487 #872D71 #87702D #2D8743
split-complementary
#2D4487 #87432D #71872D
monochromatic
#0E162B #1E2D59 #2D4487 #3C5BB5 #637ECB

Accessibility & contrast

On white

9.18
#2D4487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2D4487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4487
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4487#FFFFFF#000000##FFFFFF
##2D44871.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C89
Deuteranopia (green-blind)
#0D4486
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4487;
/* rgb */ color: rgb(45, 68, 135);
/* oklch */ color: oklch(40.6% 0.115 266.9);
Tailwind
colors: {
  custom: {
    50: '#7077aa',
    500: '#2d4487',
    950: '#000000',
  },
}
SCSS
$custom: #2d4487;
$custom-light: #7077aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4487",
  "rgb": {
    "r": 45,
    "g": 68,
    "b": 135
  },
  "hsl": {
    "h": 224.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40594,
    "c": 0.11539,
    "h": 266.9
  },
  "luminance": 0.06441
}

Semantic roles & 50–950 ramp

primary
#2D4487
secondary
#B29C5E
accent
#B64EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4487

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

Preview Lab → · Contrast checker → · Palette generator →

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