#2D4E98#2D4E98

#2D4E98 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.127 H 263.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#2D4E98
RGBrgb(45, 78, 152)
HSLhsl(221, 54%, 39%)
HSVhsv(221, 70%, 60%)
CMYKcmyk(70.4%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.54, 13.95, -44.14)
CIE-LCHlch(34.54, 46.29, 287.54°)
OKLaboklab(44.05% -0.0136 -0.1265)
OKLCHoklch(44.05% 0.127 263.9)
XYZxyz(9.4721, 8.2727, 30.7973)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E98 #98772D
analogous
#2D8398 #2D4E98 #412D98
triadic
#2D4E98 #982D4E #4E982D
tetradic
#2D4E98 #982D83 #98772D #2D9841
square
#2D4E98 #982D83 #98772D #2D9841
split-complementary
#2D4E98 #98412D #83982D
monochromatic
#111E3A #1F3669 #2D4E98 #3D67C5 #6C8CD3

Accessibility & contrast

On white

7.91
#2D4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2D4E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4E98
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E98#FFFFFF#000000##FFFFFF
##2D4E981.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27569B
Deuteranopia (green-blind)
#0C4D96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d4e98;
/* rgb */ color: rgb(45, 78, 152);
/* oklch */ color: oklch(44.1% 0.127 263.9);
Tailwind
colors: {
  custom: {
    50: '#737fb7',
    500: '#2d4e98',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e98;
$custom-light: #737fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e98",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 221.495,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.12725,
    "h": 263.9
  },
  "luminance": 0.08274
}

Semantic roles & 50–950 ramp

primary
#2D4E98
secondary
#BAA166
accent
#B04ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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