#2D5AB8#2D5AB8

#2D5AB8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.0% C 0.157 H 262.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#2D5AB8
RGBrgb(45, 90, 184)
HSLhsl(221, 61%, 45%)
HSVhsv(221, 76%, 72%)
CMYKcmyk(75.5%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.13, 18.21, -54.18)
CIE-LCHlch(40.13, 57.16, 288.58°)
OKLaboklab(49.01% -0.0198 -0.1559)
OKLCHoklch(49.01% 0.157 262.8)
XYZxyz(13.3870, 11.3294, 46.8194)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D5AB8 #B88B2D
analogous
#2D9FB8 #2D5AB8 #462DB8
triadic
#2D5AB8 #B82D5A #5AB82D
tetradic
#2D5AB8 #B82D9F #B88B2D #2DB846
square
#2D5AB8 #B82D9F #B88B2D #2DB846
split-complementary
#2D5AB8 #B8462D #9FB82D
monochromatic
#152A56 #214287 #2D5AB8 #4E7AD4 #809FE0

Accessibility & contrast

On white

6.43
#2D5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2D5AB8
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D5AB8#FFFFFF#000000##FFFFFF
##2D5AB81.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2d5ab8;
/* rgb */ color: rgb(45, 90, 184);
/* oklch */ color: oklch(49.0% 0.157 262.8);
Tailwind
colors: {
  custom: {
    50: '#7a88ce',
    500: '#2d5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2d5ab8;
$custom-light: #7a88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d5ab8",
  "rgb": {
    "r": 45,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 220.576,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.15711,
    "h": 262.8
  },
  "luminance": 0.11331
}

Semantic roles & 50–950 ramp

primary
#2D5AB8
secondary
#C9AF78
accent
#B044E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2D5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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