#2C4EB6#2C4EB6

#2C4EB6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.170 H 266.1°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2C4EB6
RGBrgb(44, 78, 182)
HSLhsl(225, 61%, 44%)
HSVhsv(225, 76%, 71%)
CMYKcmyk(75.8%, 57.1%, 0%, 28.6%)
CIE-LABlab(36.67, 25.22, -58.62)
CIE-LCHlch(36.67, 63.81, 293.28°)
OKLaboklab(46.34% -0.0115 -0.1691)
OKLCHoklch(46.34% 0.17 266.1)
XYZxyz(12.2036, 9.3603, 45.4105)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4EB6 #B6942C
analogous
#2C93B6 #2C4EB6 #4F2CB6
triadic
#2C4EB6 #B62C4E #4EB62C
tetradic
#2C4EB6 #B62C93 #B6942C #2CB64F
square
#2C4EB6 #B62C93 #B6942C #2CB64F
split-complementary
#2C4EB6 #B64F2C #93B62C
monochromatic
#142453 #203985 #2C4EB6 #4C6DD4 #7D95E0

Accessibility & contrast

On white

7.31
#2C4EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2C4EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4EB6
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4EB6#FFFFFF#000000##FFFFFF
##2C4EB61.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBA
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c4eb6;
/* rgb */ color: rgb(44, 78, 182);
/* oklch */ color: oklch(46.3% 0.170 266.1);
Tailwind
colors: {
  custom: {
    50: '#7a7fcd',
    500: '#2c4eb6',
    950: '#000000',
  },
}
SCSS
$custom: #2c4eb6;
$custom-light: #7a7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4eb6",
  "rgb": {
    "r": 44,
    "g": 78,
    "b": 182
  },
  "hsl": {
    "h": 225.217,
    "s": 61.062,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.16952,
    "h": 266.1
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#2C4EB6
secondary
#C8B476
accent
#BD44E4
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2C4EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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