#2D4178#2D4178

#2D4178 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.8% C 0.097 H 266.9°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2D4178
RGBrgb(45, 65, 120)
HSLhsl(224, 45%, 32%)
HSVhsv(224, 63%, 47%)
CMYKcmyk(62.5%, 45.8%, 0%, 52.9%)
CIE-LABlab(28.63, 10.65, -33.89)
CIE-LCHlch(28.63, 35.52, 287.44°)
OKLaboklab(38.85% -0.0053 -0.0966)
OKLCHoklch(38.85% 0.097 266.9)
XYZxyz(6.3615, 5.6940, 18.5295)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4178 #78642D
analogous
#2D6778 #2D4178 #3E2D78
triadic
#2D4178 #782D41 #41782D
tetradic
#2D4178 #782D67 #78642D #2D783E
square
#2D4178 #782D67 #78642D #2D783E
split-complementary
#2D4178 #783E2D #67782D
monochromatic
#0C111F #1C294B #2D4178 #3E59A5 #5D78C2

Accessibility & contrast

On white

9.82
#2D4178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2D4178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4178
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4178#FFFFFF#000000##FFFFFF
##2D41781.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28477A
Deuteranopia (green-blind)
#1D4077
Tritanopia (blue-blind)
#004D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2d4178;
/* rgb */ color: rgb(45, 65, 120);
/* oklch */ color: oklch(38.8% 0.097 266.9);
Tailwind
colors: {
  custom: {
    50: '#6d759f',
    500: '#2d4178',
    950: '#000000',
  },
}
SCSS
$custom: #2d4178;
$custom-light: #6d759f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4178",
  "rgb": {
    "r": 45,
    "g": 65,
    "b": 120
  },
  "hsl": {
    "h": 224,
    "s": 45.455,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.09674,
    "h": 266.9
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#2D4178
secondary
#A99358
accent
#B253D5
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2D4178

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

Preview Lab → · Contrast checker → · Palette generator →

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