#2C54AB#2C54AB

#2C54AB is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.7% C 0.147 H 263.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2C54AB
RGBrgb(44, 84, 171)
HSLhsl(221, 59%, 42%)
HSVhsv(221, 74%, 67%)
CMYKcmyk(74.3%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.51, 17.07, -50.75)
CIE-LCHlch(37.51, 53.54, 288.59°)
OKLaboklab(46.72% -0.0172 -0.1459)
OKLCHoklch(46.72% 0.147 263.3)
XYZxyz(11.5571, 9.8151, 39.8056)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C54AB #AB832C
analogous
#2C94AB #2C54AB #432CAB
triadic
#2C54AB #AB2C54 #54AB2C
tetradic
#2C54AB #AB2C94 #AB832C #2CAB43
square
#2C54AB #AB2C94 #AB832C #2CAB43
split-complementary
#2C54AB #AB432C #94AB2C
monochromatic
#13244A #1F3C7A #2C54AB #4571CF #7696DC

Accessibility & contrast

On white

7.09
#2C54AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2C54AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C54AB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C54AB#FFFFFF#000000##FFFFFF
##2C54AB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c54ab;
/* rgb */ color: rgb(44, 84, 171);
/* oklch */ color: oklch(46.7% 0.147 263.3);
Tailwind
colors: {
  custom: {
    50: '#7783c5',
    500: '#2c54ab',
    950: '#000000',
  },
}
SCSS
$custom: #2c54ab;
$custom-light: #7783c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c54ab",
  "rgb": {
    "r": 44,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 221.102,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.1469,
    "h": 263.3
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#2C54AB
secondary
#C3A96F
accent
#B146E2
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2C54AB

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

Preview Lab → · Contrast checker → · Palette generator →

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