#2D5398#2D5398

#2D5398 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.121 H 261.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2D5398
RGBrgb(45, 83, 152)
HSLhsl(219, 54%, 39%)
HSVhsv(219, 70%, 60%)
CMYKcmyk(70.4%, 45.4%, 0%, 40.4%)
CIE-LABlab(36.00, 10.63, -41.80)
CIE-LCHlch(36.00, 43.13, 284.27°)
OKLaboklab(45.17% -0.0184 -0.1195)
OKLCHoklch(45.17% 0.121 261.2)
XYZxyz(9.8409, 9.0104, 30.9202)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5398 #98722D
analogous
#2D8898 #2D5398 #3C2D98
triadic
#2D5398 #982D53 #53982D
tetradic
#2D5398 #982D88 #98722D #2D983C
square
#2D5398 #982D88 #98722D #2D983C
split-complementary
#2D5398 #983C2D #88982D
monochromatic
#111F3A #1F3969 #2D5398 #3D6DC5 #6C91D3

Accessibility & contrast

On white

7.49
#2D5398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2D5398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5398
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5398#FFFFFF#000000##FFFFFF
##2D53981.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#1D5097
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2d5398;
/* rgb */ color: rgb(45, 83, 152);
/* oklch */ color: oklch(45.2% 0.121 261.2);
Tailwind
colors: {
  custom: {
    50: '#7382b7',
    500: '#2d5398',
    950: '#000000',
  },
}
SCSS
$custom: #2d5398;
$custom-light: #7382b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5398",
  "rgb": {
    "r": 45,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 218.692,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45172,
    "c": 0.12096,
    "h": 261.2
  },
  "luminance": 0.09011
}

Semantic roles & 50–950 ramp

primary
#2D5398
secondary
#BA9D66
accent
#A94ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5398

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

Preview Lab → · Contrast checker → · Palette generator →

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