#2D5EA7#2D5EA7

#2D5EA7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.129 H 258.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2D5EA7
RGBrgb(45, 94, 167)
HSLhsl(216, 58%, 42%)
HSVhsv(216, 73%, 65%)
CMYKcmyk(73.1%, 43.7%, 0%, 34.5%)
CIE-LABlab(40.17, 9.13, -44.10)
CIE-LCHlch(40.17, 45.04, 281.70°)
OKLaboklab(48.69% -0.026 -0.1261)
OKLCHoklch(48.69% 0.129 258.4)
XYZxyz(12.0574, 11.3520, 38.1074)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EA7 #A7762D
analogous
#2D9BA7 #2D5EA7 #392DA7
triadic
#2D5EA7 #A72D5E #5EA72D
tetradic
#2D5EA7 #A72D9B #A7762D #2DA739
square
#2D5EA7 #A72D9B #A7762D #2DA739
split-complementary
#2D5EA7 #A7392D #9BA72D
monochromatic
#132847 #204377 #2D5EA7 #447BCD #759DDA

Accessibility & contrast

On white

6.42
#2D5EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2D5EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EA7
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EA7#FFFFFF#000000##FFFFFF
##2D5EA71.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A65AA
Deuteranopia (green-blind)
#2459A6
Tritanopia (blue-blind)
#006F7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5ea7;
/* rgb */ color: rgb(45, 94, 167);
/* oklch */ color: oklch(48.7% 0.129 258.4);
Tailwind
colors: {
  custom: {
    50: '#768bc1',
    500: '#2d5ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ea7;
$custom-light: #768bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ea7",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 167
  },
  "hsl": {
    "h": 215.902,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.48687,
    "c": 0.12879,
    "h": 258.4
  },
  "luminance": 0.11353
}

Semantic roles & 50–950 ramp

primary
#2D5EA7
secondary
#C1A06E
accent
#A347E1
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2D5EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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