#2C54D4#2C54D4

#2C54D4 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.0% C 0.202 H 265.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2C54D4
RGBrgb(44, 84, 212)
HSLhsl(226, 66%, 50%)
HSVhsv(226, 79%, 83%)
CMYKcmyk(79.2%, 60.4%, 0%, 16.9%)
CIE-LABlab(40.62, 32.54, -69.63)
CIE-LCHlch(40.62, 76.86, 295.05°)
OKLaboklab(50.04% -0.0146 -0.2014)
OKLCHoklch(50.04% 0.202 265.9)
XYZxyz(16.0885, 11.6277, 63.6710)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C54D4 #D4AC2C
analogous
#2CA8D4 #2C54D4 #582CD4
triadic
#2C54D4 #D42C54 #54D42C
tetradic
#2C54D4 #D42CA8 #D4AC2C #2CD458
square
#2C54D4 #D42CA8 #D4AC2C #2CD458
split-complementary
#2C54D4 #D4582C #A8D42C
monochromatic
#172C6F #2140A2 #2C54D4 #5F7DDE #92A6E9

Accessibility & contrast

On white

6.31
#2C54D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2C54D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C54D4
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C54D4#FFFFFF#000000##FFFFFF
##2C54D41.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#00758C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2c54d4;
/* rgb */ color: rgb(44, 84, 212);
/* oklch */ color: oklch(50.0% 0.202 265.9);
Tailwind
colors: {
  custom: {
    50: '#8083e2',
    500: '#2c54d4',
    950: '#000000',
  },
}
SCSS
$custom: #2c54d4;
$custom-light: #8083e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c54d4",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 212
  },
  "hsl": {
    "h": 225.714,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50035,
    "c": 0.2019,
    "h": 265.9
  },
  "luminance": 0.1163
}

Semantic roles & 50–950 ramp

primary
#2C54D4
secondary
#D3C288
accent
#C13FE9
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2C54D4

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

Preview Lab → · Contrast checker → · Palette generator →

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