#2C54B2#2C54B2

#2C54B2 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.157 H 264.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#2C54B2
RGBrgb(44, 84, 178)
HSLhsl(222, 60%, 44%)
HSVhsv(222, 75%, 70%)
CMYKcmyk(75.3%, 52.8%, 0%, 30.2%)
CIE-LABlab(38.00, 19.74, -54.10)
CIE-LCHlch(38.00, 57.59, 290.05°)
OKLaboklab(47.25% -0.0164 -0.1557)
OKLCHoklch(47.25% 0.157 264)
XYZxyz(12.2421, 10.0891, 43.4131)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C54B2 #B28A2C
analogous
#2C97B2 #2C54B2 #472CB2
triadic
#2C54B2 #B22C54 #54B22C
tetradic
#2C54B2 #B22C97 #B28A2C #2CB247
square
#2C54B2 #B22C97 #B28A2C #2CB247
split-complementary
#2C54B2 #B2472C #97B22C
monochromatic
#142650 #203D81 #2C54B2 #4972D2 #7A98DE

Accessibility & contrast

On white

6.96
#2C54B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2C54B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C54B2
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C54B2#FFFFFF#000000##FFFFFF
##2C54B21.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1260B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2c54b2;
/* rgb */ color: rgb(44, 84, 178);
/* oklch */ color: oklch(47.2% 0.157 264.0);
Tailwind
colors: {
  custom: {
    50: '#7883ca',
    500: '#2c54b2',
    950: '#000000',
  },
}
SCSS
$custom: #2c54b2;
$custom-light: #7883ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2c54b2",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 222.09,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47249,
    "c": 0.15659,
    "h": 264
  },
  "luminance": 0.1009
}

Semantic roles & 50–950 ramp

primary
#2C54B2
secondary
#C6AE73
accent
#B444E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C54B2

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

Preview Lab → · Contrast checker → · Palette generator →

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