#2D5EA8#2D5EA8

#2D5EA8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.8% C 0.130 H 258.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2D5EA8
RGBrgb(45, 94, 168)
HSLhsl(216, 58%, 42%)
HSVhsv(216, 73%, 66%)
CMYKcmyk(73.2%, 44%, 0%, 34.1%)
CIE-LABlab(40.23, 9.51, -44.60)
CIE-LCHlch(40.23, 45.60, 282.04°)
OKLaboklab(48.75% -0.0258 -0.1276)
OKLCHoklch(48.75% 0.13 258.6)
XYZxyz(12.1502, 11.3891, 38.5962)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EA8 #A8772D
analogous
#2D9BA8 #2D5EA8 #3A2DA8
triadic
#2D5EA8 #A82D5E #5EA82D
tetradic
#2D5EA8 #A82D9B #A8772D #2DA83A
square
#2D5EA8 #A82D9B #A8772D #2DA83A
split-complementary
#2D5EA8 #A83A2D #9BA82D
monochromatic
#132847 #204378 #2D5EA8 #457BCD #759DDA

Accessibility & contrast

On white

6.41
#2D5EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2D5EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EA8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EA8#FFFFFF#000000##FFFFFF
##2D5EA81.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AB
Deuteranopia (green-blind)
#235AA7
Tritanopia (blue-blind)
#006F7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5ea8;
/* rgb */ color: rgb(45, 94, 168);
/* oklch */ color: oklch(48.8% 0.130 258.6);
Tailwind
colors: {
  custom: {
    50: '#768bc2',
    500: '#2d5ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ea8;
$custom-light: #768bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ea8",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 168
  },
  "hsl": {
    "h": 216.098,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48754,
    "c": 0.13017,
    "h": 258.6
  },
  "luminance": 0.1139
}

Semantic roles & 50–950 ramp

primary
#2D5EA8
secondary
#C2A16F
accent
#A447E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2D5EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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