#2D54B9#2D54B9

#2D54B9 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.8% C 0.166 H 264.8°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2D54B9
RGBrgb(45, 84, 185)
HSLhsl(223, 61%, 45%)
HSVhsv(223, 76%, 73%)
CMYKcmyk(75.7%, 54.6%, 0%, 27.5%)
CIE-LABlab(38.55, 22.52, -57.32)
CIE-LCHlch(38.55, 61.59, 291.45°)
OKLaboklab(47.84% -0.015 -0.1652)
OKLCHoklch(47.84% 0.166 264.8)
XYZxyz(13.0064, 10.3999, 47.2114)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54B9 #B9922D
analogous
#2D9AB9 #2D54B9 #4C2DB9
triadic
#2D54B9 #B92D54 #54B92D
tetradic
#2D54B9 #B92D9A #B9922D #2DB94C
square
#2D54B9 #B92D9A #B9922D #2DB94C
split-complementary
#2D54B9 #B94C2D #9AB92D
monochromatic
#152757 #213E88 #2D54B9 #4F74D4 #809BE0

Accessibility & contrast

On white

6.82
#2D54B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2D54B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D54B9
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54B9#FFFFFF#000000##FFFFFF
##2D54B91.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#0055B7
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d54b9;
/* rgb */ color: rgb(45, 84, 185);
/* oklch */ color: oklch(47.8% 0.166 264.8);
Tailwind
colors: {
  custom: {
    50: '#7a83cf',
    500: '#2d54b9',
    950: '#000000',
  },
}
SCSS
$custom: #2d54b9;
$custom-light: #7a83cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54b9",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 185
  },
  "hsl": {
    "h": 223.286,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47837,
    "c": 0.16589,
    "h": 264.8
  },
  "luminance": 0.10401
}

Semantic roles & 50–950 ramp

primary
#2D54B9
secondary
#C9B379
accent
#B744E4
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2D54B9

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

Preview Lab → · Contrast checker → · Palette generator →

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