#2D5495#2D5495

#2D5495 is a mid, moderate blue. Relative luminance 0.091; OKLCH L 45.2% C 0.115 H 260.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2D5495
RGBrgb(45, 84, 149)
HSLhsl(218, 54%, 38%)
HSVhsv(218, 70%, 58%)
CMYKcmyk(69.8%, 43.6%, 0%, 41.6%)
CIE-LABlab(36.11, 8.83, -39.81)
CIE-LCHlch(36.11, 40.78, 282.51°)
OKLaboklab(45.2% -0.02 -0.1137)
OKLCHoklch(45.2% 0.115 260)
XYZxyz(9.6754, 9.0675, 29.6682)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5495 #956E2D
analogous
#2D8895 #2D5495 #3A2D95
triadic
#2D5495 #952D54 #54952D
tetradic
#2D5495 #952D88 #956E2D #2D953A
square
#2D5495 #952D88 #956E2D #2D953A
split-complementary
#2D5495 #953A2D #88952D
monochromatic
#111F37 #1F3A66 #2D5495 #3B6FC4 #6A91D2

Accessibility & contrast

On white

7.46
#2D5495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2D5495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D5495
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5495#FFFFFF#000000##FFFFFF
##2D54951.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355A98
Deuteranopia (green-blind)
#245094
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2d5495;
/* rgb */ color: rgb(45, 84, 149);
/* oklch */ color: oklch(45.2% 0.115 260.0);
Tailwind
colors: {
  custom: {
    50: '#7283b4',
    500: '#2d5495',
    950: '#000000',
  },
}
SCSS
$custom: #2d5495;
$custom-light: #7283b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5495",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 149
  },
  "hsl": {
    "h": 217.5,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45197,
    "c": 0.11543,
    "h": 260
  },
  "luminance": 0.09068
}

Semantic roles & 50–950 ramp

primary
#2D5495
secondary
#B99965
accent
#A64BDD
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2D5495

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

Preview Lab → · Contrast checker → · Palette generator →

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