#2D4F97#2D4F97

#2D4F97 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.125 H 263.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2D4F97
RGBrgb(45, 79, 151)
HSLhsl(221, 54%, 38%)
HSVhsv(221, 70%, 59%)
CMYKcmyk(70.2%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.77, 12.90, -43.17)
CIE-LCHlch(34.77, 45.06, 286.64°)
OKLaboklab(44.2% -0.0147 -0.1237)
OKLCHoklch(44.2% 0.125 263.2)
XYZxyz(9.4621, 8.3833, 30.3916)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4F97 #97752D
analogous
#2D8497 #2D4F97 #402D97
triadic
#2D4F97 #972D4F #4F972D
tetradic
#2D4F97 #972D84 #97752D #2D9740
square
#2D4F97 #972D84 #97752D #2D9740
split-complementary
#2D4F97 #97402D #84972D
monochromatic
#111E39 #1F3668 #2D4F97 #3C68C5 #6B8DD3

Accessibility & contrast

On white

7.85
#2D4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2D4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4F97
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4F97#FFFFFF#000000##FFFFFF
##2D4F971.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#134D96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2d4f97;
/* rgb */ color: rgb(45, 79, 151);
/* oklch */ color: oklch(44.2% 0.125 263.2);
Tailwind
colors: {
  custom: {
    50: '#737fb6',
    500: '#2d4f97',
    950: '#000000',
  },
}
SCSS
$custom: #2d4f97;
$custom-light: #737fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4f97",
  "rgb": {
    "r": 45,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 220.755,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44202,
    "c": 0.12453,
    "h": 263.2
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

primary
#2D4F97
secondary
#BA9F66
accent
#AE4ADD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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