#2D5698#2D5698

#2D5698 is a mid, moderate blue. Relative luminance 0.095; OKLCH L 45.9% C 0.117 H 259.5°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2D5698
RGBrgb(45, 86, 152)
HSLhsl(217, 54%, 39%)
HSVhsv(217, 70%, 60%)
CMYKcmyk(70.4%, 43.4%, 0%, 40.4%)
CIE-LABlab(36.89, 8.65, -40.38)
CIE-LCHlch(36.89, 41.29, 282.10°)
OKLaboklab(45.86% -0.0214 -0.1153)
OKLCHoklch(45.86% 0.117 259.5)
XYZxyz(10.0754, 9.4794, 30.9984)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5698 #986F2D
analogous
#2D8B98 #2D5698 #392D98
triadic
#2D5698 #982D56 #56982D
tetradic
#2D5698 #982D8B #986F2D #2D9839
square
#2D5698 #982D8B #986F2D #2D9839
split-complementary
#2D5698 #98392D #8B982D
monochromatic
#11213A #1F3B69 #2D5698 #3D71C5 #6C94D3

Accessibility & contrast

On white

7.25
#2D5698 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2D5698 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5698
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5698#FFFFFF#000000##FFFFFF
##2D56981.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375C9B
Deuteranopia (green-blind)
#255297
Tritanopia (blue-blind)
#00656F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2d5698;
/* rgb */ color: rgb(45, 86, 152);
/* oklch */ color: oklch(45.9% 0.117 259.5);
Tailwind
colors: {
  custom: {
    50: '#7385b7',
    500: '#2d5698',
    950: '#000000',
  },
}
SCSS
$custom: #2d5698;
$custom-light: #7385b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5698",
  "rgb": {
    "r": 45,
    "g": 86,
    "b": 152
  },
  "hsl": {
    "h": 217.009,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.11729,
    "h": 259.5
  },
  "luminance": 0.0948
}

Semantic roles & 50–950 ramp

primary
#2D5698
secondary
#BA9A66
accent
#A54ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2D5698

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

Preview Lab → · Contrast checker → · Palette generator →

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