#2D5299#2D5299

#2D5299 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.124 H 262.0°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2D5299
RGBrgb(45, 82, 153)
HSLhsl(219, 55%, 39%)
HSVhsv(219, 71%, 60%)
CMYKcmyk(70.6%, 46.4%, 0%, 40%)
CIE-LABlab(35.77, 11.67, -42.77)
CIE-LCHlch(35.77, 44.33, 285.26°)
OKLaboklab(45.02% -0.0173 -0.1224)
OKLCHoklch(45.02% 0.124 262)
XYZxyz(9.8472, 8.8914, 31.3281)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5299 #99742D
analogous
#2D8899 #2D5299 #3E2D99
triadic
#2D5299 #992D52 #52992D
tetradic
#2D5299 #992D88 #99742D #2D993E
square
#2D5299 #992D88 #99742D #2D993E
split-complementary
#2D5299 #993E2D #88992D
monochromatic
#111F3A #1F396A #2D5299 #3D6CC6 #6C90D4

Accessibility & contrast

On white

7.56
#2D5299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2D5299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5299
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5299#FFFFFF#000000##FFFFFF
##2D52991.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599C
Deuteranopia (green-blind)
#194F98
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d5299;
/* rgb */ color: rgb(45, 82, 153);
/* oklch */ color: oklch(45.0% 0.124 262.0);
Tailwind
colors: {
  custom: {
    50: '#7382b7',
    500: '#2d5299',
    950: '#000000',
  },
}
SCSS
$custom: #2d5299;
$custom-light: #7382b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5299",
  "rgb": {
    "r": 45,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 219.444,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.12363,
    "h": 262
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#2D5299
secondary
#BB9E67
accent
#AB4ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5299

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

Preview Lab → · Contrast checker → · Palette generator →

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