#2D5EA5#2D5EA5

#2D5EA5 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.6% C 0.126 H 257.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#2D5EA5
RGBrgb(45, 94, 165)
HSLhsl(216, 57%, 41%)
HSVhsv(216, 73%, 65%)
CMYKcmyk(72.7%, 43%, 0%, 35.3%)
CIE-LABlab(40.05, 8.38, -43.11)
CIE-LCHlch(40.05, 43.92, 280.99°)
OKLaboklab(48.55% -0.0264 -0.1232)
OKLCHoklch(48.55% 0.126 257.9)
XYZxyz(11.8740, 11.2786, 37.1412)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EA5 #A5742D
analogous
#2D9AA5 #2D5EA5 #382DA5
triadic
#2D5EA5 #A52D5E #5EA52D
tetradic
#2D5EA5 #A52D9A #A5742D #2DA538
square
#2D5EA5 #A52D9A #A5742D #2DA538
split-complementary
#2D5EA5 #A5382D #9AA52D
monochromatic
#132745 #204375 #2D5EA5 #437BCC #739DD9

Accessibility & contrast

On white

6.45
#2D5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#2D5EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EA5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EA5#FFFFFF#000000##FFFFFF
##2D5EA51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C64A8
Deuteranopia (green-blind)
#2759A4
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2d5ea5;
/* rgb */ color: rgb(45, 94, 165);
/* oklch */ color: oklch(48.6% 0.126 257.9);
Tailwind
colors: {
  custom: {
    50: '#758bc0',
    500: '#2d5ea5',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ea5;
$custom-light: #758bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ea5",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 215.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48553,
    "c": 0.12601,
    "h": 257.9
  },
  "luminance": 0.1128
}

Semantic roles & 50–950 ramp

primary
#2D5EA5
secondary
#C19F6D
accent
#A247E0
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2D5EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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