#2D4185#2D4185

#2D4185 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.8% C 0.116 H 268.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2D4185
RGBrgb(45, 65, 133)
HSLhsl(226, 49%, 35%)
HSVhsv(226, 66%, 52%)
CMYKcmyk(66.2%, 51.1%, 0%, 47.8%)
CIE-LABlab(29.49, 15.52, -40.63)
CIE-LCHlch(29.49, 43.49, 290.91°)
OKLaboklab(39.78% -0.0033 -0.1164)
OKLCHoklch(39.78% 0.116 268.4)
XYZxyz(7.2047, 6.0313, 22.9702)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4185 #85712D
analogous
#2D6D85 #2D4185 #452D85
triadic
#2D4185 #852D41 #41852D
tetradic
#2D4185 #852D6D #85712D #2D8545
square
#2D4185 #852D6D #85712D #2D8545
split-complementary
#2D4185 #85452D #6D852D
monochromatic
#0E142A #1E2B57 #2D4185 #3C57B3 #627ACA

Accessibility & contrast

On white

9.52
#2D4185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2D4185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4185
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4185#FFFFFF#000000##FFFFFF
##2D41851.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4A87
Deuteranopia (green-blind)
#054284
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2d4185;
/* rgb */ color: rgb(45, 65, 133);
/* oklch */ color: oklch(39.8% 0.116 268.4);
Tailwind
colors: {
  custom: {
    50: '#7075a9',
    500: '#2d4185',
    950: '#000000',
  },
}
SCSS
$custom: #2d4185;
$custom-light: #7075a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4185",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 133
  },
  "hsl": {
    "h": 226.364,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39783,
    "c": 0.11644,
    "h": 268.4
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#2D4185
secondary
#B09E5D
accent
#BA4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4185

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

Preview Lab → · Contrast checker → · Palette generator →

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