#2C54A6#2C54A6

#2C54A6 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.140 H 262.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2C54A6
RGBrgb(44, 84, 166)
HSLhsl(220, 58%, 41%)
HSVhsv(220, 73%, 65%)
CMYKcmyk(73.5%, 49.4%, 0%, 34.9%)
CIE-LABlab(37.17, 15.16, -48.33)
CIE-LCHlch(37.17, 50.65, 287.41°)
OKLaboklab(46.35% -0.0179 -0.1388)
OKLCHoklch(46.35% 0.14 262.7)
XYZxyz(11.0895, 9.6281, 37.3430)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C54A6 #A67E2C
analogous
#2C91A6 #2C54A6 #412CA6
triadic
#2C54A6 #A62C54 #54A62C
tetradic
#2C54A6 #A62C91 #A67E2C #2CA641
square
#2C54A6 #A62C91 #A67E2C #2CA641
split-complementary
#2C54A6 #A6412C #91A62C
monochromatic
#122345 #1F3C76 #2C54A6 #4270CD #7394DA

Accessibility & contrast

On white

7.18
#2C54A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2C54A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C54A6
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C54A6#FFFFFF#000000##FFFFFF
##2C54A61.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c54a6;
/* rgb */ color: rgb(44, 84, 166);
/* oklch */ color: oklch(46.3% 0.140 262.7);
Tailwind
colors: {
  custom: {
    50: '#7683c1',
    500: '#2c54a6',
    950: '#000000',
  },
}
SCSS
$custom: #2c54a6;
$custom-light: #7683c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c54a6",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 220.328,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.1399,
    "h": 262.7
  },
  "luminance": 0.09629
}

Semantic roles & 50–950 ramp

primary
#2C54A6
secondary
#C1A56D
accent
#AF46E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2C54A6

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

Preview Lab → · Contrast checker → · Palette generator →

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