#2D5098#2D5098

#2D5098 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.125 H 262.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#2D5098
RGBrgb(45, 80, 152)
HSLhsl(220, 54%, 39%)
HSVhsv(220, 70%, 60%)
CMYKcmyk(70.4%, 47.4%, 0%, 40.4%)
CIE-LABlab(35.13, 12.62, -43.21)
CIE-LCHlch(35.13, 45.01, 286.28°)
OKLaboklab(44.5% -0.0155 -0.1237)
OKLCHoklch(44.5% 0.125 262.9)
XYZxyz(9.6163, 8.5612, 30.8454)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5098 #98752D
analogous
#2D8598 #2D5098 #3F2D98
triadic
#2D5098 #982D50 #50982D
tetradic
#2D5098 #982D85 #98752D #2D983F
square
#2D5098 #982D85 #98752D #2D983F
split-complementary
#2D5098 #983F2D #85982D
monochromatic
#111E3A #1F3769 #2D5098 #3D69C5 #6C8ED3

Accessibility & contrast

On white

7.74
#2D5098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2D5098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5098
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5098#FFFFFF#000000##FFFFFF
##2D50981.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#144E97
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d5098;
/* rgb */ color: rgb(45, 80, 152);
/* oklch */ color: oklch(44.5% 0.125 262.9);
Tailwind
colors: {
  custom: {
    50: '#7380b7',
    500: '#2d5098',
    950: '#000000',
  },
}
SCSS
$custom: #2d5098;
$custom-light: #7380b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5098",
  "rgb": {
    "r": 45,
    "g": 80,
    "b": 152
  },
  "hsl": {
    "h": 220.374,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44497,
    "c": 0.12471,
    "h": 262.9
  },
  "luminance": 0.08562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D5098

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

Preview Lab → · Contrast checker → · Palette generator →

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