#2D4186#2D4186

#2D4186 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.118 H 268.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2D4186
RGBrgb(45, 65, 134)
HSLhsl(227, 50%, 35%)
HSVhsv(227, 66%, 53%)
CMYKcmyk(66.4%, 51.5%, 0%, 47.5%)
CIE-LABlab(29.56, 15.90, -41.13)
CIE-LCHlch(29.56, 44.10, 291.13°)
OKLaboklab(39.86% -0.0032 -0.1179)
OKLCHoklch(39.86% 0.118 268.5)
XYZxyz(7.2741, 6.0591, 23.3358)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4186 #86722D
analogous
#2D6D86 #2D4186 #462D86
triadic
#2D4186 #862D41 #41862D
tetradic
#2D4186 #862D6D #86722D #2D8646
square
#2D4186 #862D6D #86722D #2D8646
split-complementary
#2D4186 #86462D #6D862D
monochromatic
#0E152A #1E2B58 #2D4186 #3C57B4 #637ACB

Accessibility & contrast

On white

9.49
#2D4186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4186
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4186#FFFFFF#000000##FFFFFF
##2D41861.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A88
Deuteranopia (green-blind)
#034285
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4186;
/* rgb */ color: rgb(45, 65, 134);
/* oklch */ color: oklch(39.9% 0.118 268.5);
Tailwind
colors: {
  custom: {
    50: '#7075aa',
    500: '#2d4186',
    950: '#000000',
  },
}
SCSS
$custom: #2d4186;
$custom-light: #7075aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4186",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 226.517,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39859,
    "c": 0.11793,
    "h": 268.5
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4186

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

Preview Lab → · Contrast checker → · Palette generator →

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