#2D54B8#2D54B8

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

Color values

HEX#2D54B8
RGBrgb(45, 84, 184)
HSLhsl(223, 61%, 45%)
HSVhsv(223, 76%, 72%)
CMYKcmyk(75.5%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.48, 22.15, -56.86)
CIE-LCHlch(38.48, 61.02, 291.28°)
OKLaboklab(47.76% -0.0151 -0.1638)
OKLCHoklch(47.76% 0.165 264.7)
XYZxyz(12.9012, 10.3578, 46.6574)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D54B8 #B8912D
analogous
#2D9AB8 #2D54B8 #4B2DB8
triadic
#2D54B8 #B82D54 #54B82D
tetradic
#2D54B8 #B82D9A #B8912D #2DB84B
square
#2D54B8 #B82D9A #B8912D #2DB84B
split-complementary
#2D54B8 #B84B2D #9AB82D
monochromatic
#152756 #213E87 #2D54B8 #4E74D4 #809BE0

Accessibility & contrast

On white

6.84
#2D54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2D54B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2D54B8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D54B8#FFFFFF#000000##FFFFFF
##2D54B81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2d54b8;
/* rgb */ color: rgb(45, 84, 184);
/* oklch */ color: oklch(47.8% 0.165 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a83ce',
    500: '#2d54b8',
    950: '#000000',
  },
}
SCSS
$custom: #2d54b8;
$custom-light: #7a83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2d54b8",
  "rgb": {
    "r": 45,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 223.165,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.16453,
    "h": 264.7
  },
  "luminance": 0.10359
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D54B8

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

Preview Lab → · Contrast checker → · Palette generator →

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