#2D5EB4#2D5EB4

#2D5EB4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.147 H 260.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2D5EB4
RGBrgb(45, 94, 180)
HSLhsl(218, 60%, 44%)
HSVhsv(218, 75%, 71%)
CMYKcmyk(75%, 47.8%, 0%, 29.4%)
CIE-LABlab(40.99, 14.07, -50.45)
CIE-LCHlch(40.99, 52.38, 285.59°)
OKLaboklab(49.58% -0.0236 -0.1448)
OKLCHoklch(49.58% 0.147 260.7)
XYZxyz(13.3201, 11.8571, 44.7578)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5EB4 #B4832D
analogous
#2DA2B4 #2D5EB4 #402DB4
triadic
#2D5EB4 #B42D5E #5EB42D
tetradic
#2D5EB4 #B42DA2 #B4832D #2DB440
square
#2D5EB4 #B42DA2 #B4832D #2DB440
split-complementary
#2D5EB4 #B4402D #A2B42D
monochromatic
#152B52 #214483 #2D5EB4 #4C7DD2 #7DA0DE

Accessibility & contrast

On white

6.23
#2D5EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2D5EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D5EB4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5EB4#FFFFFF#000000##FFFFFF
##2D5EB41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B7
Deuteranopia (green-blind)
#065BB2
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2d5eb4;
/* rgb */ color: rgb(45, 94, 180);
/* oklch */ color: oklch(49.6% 0.147 260.7);
Tailwind
colors: {
  custom: {
    50: '#798bcb',
    500: '#2d5eb4',
    950: '#000000',
  },
}
SCSS
$custom: #2d5eb4;
$custom-light: #798bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5eb4",
  "rgb": {
    "r": 45,
    "g": 94,
    "b": 180
  },
  "hsl": {
    "h": 218.222,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49584,
    "c": 0.14673,
    "h": 260.7
  },
  "luminance": 0.11859
}

Semantic roles & 50–950 ramp

primary
#2D5EB4
secondary
#C7AA76
accent
#AA45E3
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2D5EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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