#2D4187#2D4187

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

Color values

HEX#2D4187
RGBrgb(45, 65, 135)
HSLhsl(227, 50%, 35%)
HSVhsv(227, 67%, 53%)
CMYKcmyk(66.7%, 51.9%, 0%, 47.1%)
CIE-LABlab(29.63, 16.28, -41.64)
CIE-LCHlch(29.63, 44.71, 291.35°)
OKLaboklab(39.93% -0.0031 -0.1194)
OKLCHoklch(39.93% 0.119 268.5)
XYZxyz(7.3442, 6.0871, 23.7049)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4187 #87732D
analogous
#2D6E87 #2D4187 #462D87
triadic
#2D4187 #872D41 #41872D
tetradic
#2D4187 #872D6E #87732D #2D8746
square
#2D4187 #872D6E #87732D #2D8746
split-complementary
#2D4187 #87462D #6E872D
monochromatic
#0E152B #1E2B59 #2D4187 #3C57B5 #637ACB

Accessibility & contrast

On white

9.47
#2D4187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2D4187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4187
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4187#FFFFFF#000000##FFFFFF
##2D41871.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194A8A
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2d4187;
/* rgb */ color: rgb(45, 65, 135);
/* oklch */ color: oklch(39.9% 0.119 268.5);
Tailwind
colors: {
  custom: {
    50: '#7075aa',
    500: '#2d4187',
    950: '#000000',
  },
}
SCSS
$custom: #2d4187;
$custom-light: #7075aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4187",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 226.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.11942,
    "h": 268.5
  },
  "luminance": 0.06088
}

Semantic roles & 50–950 ramp

primary
#2D4187
secondary
#B29F5E
accent
#BB4EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2D4187

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

Preview Lab → · Contrast checker → · Palette generator →

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