#2D4875#2D4875

#2D4875 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.3% C 0.083 H 260.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2D4875
RGBrgb(45, 72, 117)
HSLhsl(218, 44%, 32%)
HSVhsv(218, 62%, 46%)
CMYKcmyk(61.5%, 38.5%, 0%, 54.1%)
CIE-LABlab(30.58, 4.82, -28.89)
CIE-LCHlch(30.58, 29.29, 279.46°)
OKLaboklab(40.3% -0.0143 -0.0819)
OKLCHoklch(40.3% 0.083 260.1)
XYZxyz(6.6093, 6.4764, 17.7279)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4875 #755A2D
analogous
#2D6C75 #2D4875 #362D75
triadic
#2D4875 #752D48 #48752D
tetradic
#2D4875 #752D6C #755A2D #2D7536
square
#2D4875 #752D6C #755A2D #2D7536
split-complementary
#2D4875 #75362D #6C752D
monochromatic
#0B121D #1C2D49 #2D4875 #3E63A1 #5C82C0

Accessibility & contrast

On white

9.15
#2D4875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2D4875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4875
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4875#FFFFFF#000000##FFFFFF
##2D48751.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#354C77
Deuteranopia (green-blind)
#2C4574
Tritanopia (blue-blind)
#005259
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2d4875;
/* rgb */ color: rgb(45, 72, 117);
/* oklch */ color: oklch(40.3% 0.083 260.1);
Tailwind
colors: {
  custom: {
    50: '#6d7a9d',
    500: '#2d4875',
    950: '#000000',
  },
}
SCSS
$custom: #2d4875;
$custom-light: #6d7a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4875",
  "rgb": {
    "r": 45,
    "g": 72,
    "b": 117
  },
  "hsl": {
    "h": 217.5,
    "s": 44.444,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40298,
    "c": 0.0831,
    "h": 260.1
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#2D4875
secondary
#A68957
accent
#A454D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07090E
muted
#7A7B7E

Preview Lab

Preview with #2D4875

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

Preview Lab → · Contrast checker → · Palette generator →

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