#2D5A9D#2D5A9D

#2D5A9D is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.1% C 0.120 H 258.3°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#2D5A9D
RGBrgb(45, 90, 157)
HSLhsl(216, 55%, 40%)
HSVhsv(216, 71%, 62%)
CMYKcmyk(71.3%, 42.7%, 0%, 38.4%)
CIE-LABlab(38.38, 7.94, -41.00)
CIE-LCHlch(38.38, 41.76, 280.96°)
OKLaboklab(47.11% -0.0242 -0.1171)
OKLCHoklch(47.11% 0.12 258.3)
XYZxyz(10.8220, 10.3034, 33.3102)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5A9D #9D702D
analogous
#2D929D #2D5A9D #382D9D
triadic
#2D5A9D #9D2D5A #5A9D2D
tetradic
#2D5A9D #9D2D92 #9D702D #2D9D38
square
#2D5A9D #9D2D92 #9D702D #2D9D38
split-complementary
#2D5A9D #9D382D #929D2D
monochromatic
#12233E #1F3F6D #2D5A9D #3F76C8 #6F98D6

Accessibility & contrast

On white

6.86
#2D5A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2D5A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5A9D
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5A9D#FFFFFF#000000##FFFFFF
##2D5A9D1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#28569C
Tritanopia (blue-blind)
#006A74
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2d5a9d;
/* rgb */ color: rgb(45, 90, 157);
/* oklch */ color: oklch(47.1% 0.120 258.3);
Tailwind
colors: {
  custom: {
    50: '#7488ba',
    500: '#2d5a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2d5a9d;
$custom-light: #7488ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5a9d",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 157
  },
  "hsl": {
    "h": 215.893,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.47108,
    "c": 0.11957,
    "h": 258.3
  },
  "luminance": 0.10305
}

Semantic roles & 50–950 ramp

primary
#2D5A9D
secondary
#BD9B69
accent
#A349DF
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D5A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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