#2C54B8#2C54B8

#2C54B8 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.165 H 264.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2C54B8
RGBrgb(44, 84, 184)
HSLhsl(223, 61%, 45%)
HSVhsv(223, 76%, 72%)
CMYKcmyk(76.1%, 54.3%, 0%, 27.8%)
CIE-LABlab(38.44, 22.03, -56.92)
CIE-LCHlch(38.44, 61.03, 291.15°)
OKLaboklab(47.72% -0.0159 -0.164)
OKLCHoklch(47.72% 0.165 264.5)
XYZxyz(12.8577, 10.3354, 46.6554)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C54B8 #B8902C
analogous
#2C9AB8 #2C54B8 #4A2CB8
triadic
#2C54B8 #B82C54 #54B82C
tetradic
#2C54B8 #B82C9A #B8902C #2CB84A
square
#2C54B8 #B82C9A #B8902C #2CB84A
split-complementary
#2C54B8 #B84A2C #9AB82C
monochromatic
#142755 #203D87 #2C54B8 #4D74D4 #7E9AE0

Accessibility & contrast

On white

6.85
#2C54B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2C54B8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C54B8#FFFFFF#000000##FFFFFF
##2C54B81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c54b8;
/* rgb */ color: rgb(44, 84, 184);
/* oklch */ color: oklch(47.7% 0.165 264.5);
Tailwind
colors: {
  custom: {
    50: '#7a83ce',
    500: '#2c54b8',
    950: '#000000',
  },
}
SCSS
$custom: #2c54b8;
$custom-light: #7a83ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2c54b8",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 184
  },
  "hsl": {
    "h": 222.857,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47717,
    "c": 0.16481,
    "h": 264.5
  },
  "luminance": 0.10337
}

Semantic roles & 50–950 ramp

primary
#2C54B8
secondary
#C9B177
accent
#B643E5
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2C54B8

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

Preview Lab → · Contrast checker → · Palette generator →

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