#2C4DB6#2C4DB6

#2C4DB6 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.171 H 266.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2C4DB6
RGBrgb(44, 77, 182)
HSLhsl(226, 61%, 44%)
HSVhsv(226, 76%, 71%)
CMYKcmyk(75.8%, 57.7%, 0%, 28.6%)
CIE-LABlab(36.40, 25.88, -59.05)
CIE-LCHlch(36.40, 64.47, 293.67°)
OKLaboklab(46.14% -0.0108 -0.1704)
OKLCHoklch(46.14% 0.171 266.4)
XYZxyz(12.1331, 9.2193, 45.3869)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DB6 #B6952C
analogous
#2C92B6 #2C4DB6 #502CB6
triadic
#2C4DB6 #B62C4D #4DB62C
tetradic
#2C4DB6 #B62C92 #B6952C #2CB650
square
#2C4DB6 #B62C92 #B6952C #2CB650
split-complementary
#2C4DB6 #B6502C #92B62C
monochromatic
#142353 #203885 #2C4DB6 #4C6CD4 #7D94E0

Accessibility & contrast

On white

7.38
#2C4DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2C4DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4DB6
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DB6#FFFFFF#000000##FFFFFF
##2C4DB61.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c4db6;
/* rgb */ color: rgb(44, 77, 182);
/* oklch */ color: oklch(46.1% 0.171 266.4);
Tailwind
colors: {
  custom: {
    50: '#7a7ecd',
    500: '#2c4db6',
    950: '#000000',
  },
}
SCSS
$custom: #2c4db6;
$custom-light: #7a7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4db6",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 182
  },
  "hsl": {
    "h": 225.652,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46138,
    "c": 0.17076,
    "h": 266.4
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#2C4DB6
secondary
#C8B476
accent
#BE44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2C4DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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