#2D4887#2D4887

#2D4887 is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.5% C 0.110 H 264.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#2D4887
RGBrgb(45, 72, 135)
HSLhsl(222, 50%, 35%)
HSVhsv(222, 67%, 53%)
CMYKcmyk(66.7%, 46.7%, 0%, 47.1%)
CIE-LABlab(31.67, 11.53, -38.36)
CIE-LCHlch(31.67, 40.06, 286.73°)
OKLaboklab(41.49% -0.0103 -0.1096)
OKLCHoklch(41.49% 0.11 264.6)
XYZxyz(7.7712, 6.9412, 23.8472)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4887 #876C2D
analogous
#2D7587 #2D4887 #3F2D87
triadic
#2D4887 #872D48 #48872D
tetradic
#2D4887 #872D75 #876C2D #2D873F
square
#2D4887 #872D75 #876C2D #2D873F
split-complementary
#2D4887 #873F2D #75872D
monochromatic
#0E172B #1E3059 #2D4887 #3C60B5 #6382CB

Accessibility & contrast

On white

8.79
#2D4887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2D4887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4887
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4887#FFFFFF#000000##FFFFFF
##2D48871.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F89
Deuteranopia (green-blind)
#1A4786
Tritanopia (blue-blind)
#005661
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2d4887;
/* rgb */ color: rgb(45, 72, 135);
/* oklch */ color: oklch(41.5% 0.110 264.6);
Tailwind
colors: {
  custom: {
    50: '#707aaa',
    500: '#2d4887',
    950: '#000000',
  },
}
SCSS
$custom: #2d4887;
$custom-light: #707aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4887",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 135
  },
  "hsl": {
    "h": 222,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.41492,
    "c": 0.11011,
    "h": 264.6
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#2D4887
secondary
#B2995E
accent
#B04EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2D4887

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

Preview Lab → · Contrast checker → · Palette generator →

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