#2D4E97#2D4E97

#2D4E97 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.126 H 263.7°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2D4E97
RGBrgb(45, 78, 151)
HSLhsl(221, 54%, 38%)
HSVhsv(221, 70%, 59%)
CMYKcmyk(70.2%, 48.3%, 0%, 40.8%)
CIE-LABlab(34.48, 13.57, -43.64)
CIE-LCHlch(34.48, 45.70, 287.27°)
OKLaboklab(43.98% -0.0137 -0.125)
OKLCHoklch(43.98% 0.126 263.7)
XYZxyz(9.3905, 8.2401, 30.3678)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4E97 #97762D
analogous
#2D8397 #2D4E97 #412D97
triadic
#2D4E97 #972D4E #4E972D
tetradic
#2D4E97 #972D83 #97762D #2D9741
square
#2D4E97 #972D83 #97762D #2D9741
split-complementary
#2D4E97 #97412D #83972D
monochromatic
#111D39 #1F3668 #2D4E97 #3C67C5 #6B8CD3

Accessibility & contrast

On white

7.93
#2D4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D4E97
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4E97#FFFFFF#000000##FFFFFF
##2D4E971.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#0F4D96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2d4e97;
/* rgb */ color: rgb(45, 78, 151);
/* oklch */ color: oklch(44.0% 0.126 263.7);
Tailwind
colors: {
  custom: {
    50: '#737fb6',
    500: '#2d4e97',
    950: '#000000',
  },
}
SCSS
$custom: #2d4e97;
$custom-light: #737fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4e97",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 221.321,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43979,
    "c": 0.1258,
    "h": 263.7
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#2D4E97
secondary
#BAA066
accent
#B04ADD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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