#2D4398#2D4398

#2D4398 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.7% C 0.141 H 268.6°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2D4398
RGBrgb(45, 67, 152)
HSLhsl(228, 54%, 39%)
HSVhsv(228, 70%, 60%)
CMYKcmyk(70.4%, 55.9%, 0%, 40.4%)
CIE-LABlab(31.44, 21.34, -49.16)
CIE-LCHlch(31.44, 53.59, 293.47°)
OKLaboklab(41.69% -0.0035 -0.1415)
OKLCHoklch(41.69% 0.142 268.6)
XYZxyz(8.7549, 6.8383, 30.5582)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4398 #98822D
analogous
#2D7898 #2D4398 #4C2D98
triadic
#2D4398 #982D43 #43982D
tetradic
#2D4398 #982D78 #98822D #2D984C
square
#2D4398 #982D78 #98822D #2D984C
split-complementary
#2D4398 #984C2D #78982D
monochromatic
#11193A #1F2E69 #2D4398 #3D59C5 #6C81D3

Accessibility & contrast

On white

8.87
#2D4398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2D4398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4398
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4398#FFFFFF#000000##FFFFFF
##2D43981.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2d4398;
/* rgb */ color: rgb(45, 67, 152);
/* oklch */ color: oklch(41.7% 0.141 268.6);
Tailwind
colors: {
  custom: {
    50: '#7476b7',
    500: '#2d4398',
    950: '#000000',
  },
}
SCSS
$custom: #2d4398;
$custom-light: #7476b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4398",
  "rgb": {
    "r": 45,
    "g": 67,
    "b": 152
  },
  "hsl": {
    "h": 227.664,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41693,
    "c": 0.1415,
    "h": 268.6
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#2D4398
secondary
#BAA966
accent
#BF4ADE
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2D4398

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

Preview Lab → · Contrast checker → · Palette generator →

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