#2C4FA6#2C4FA6

#2C4FA6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.146 H 264.7°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2C4FA6
RGBrgb(44, 79, 166)
HSLhsl(223, 58%, 41%)
HSVhsv(223, 73%, 65%)
CMYKcmyk(73.5%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.75, 18.48, -50.61)
CIE-LCHlch(35.75, 53.88, 290.05°)
OKLaboklab(45.27% -0.0135 -0.1456)
OKLCHoklch(45.27% 0.146 264.7)
XYZxyz(10.7152, 8.8795, 37.2182)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4FA6 #A6832C
analogous
#2C8CA6 #2C4FA6 #462CA6
triadic
#2C4FA6 #A62C4F #4FA62C
tetradic
#2C4FA6 #A62C8C #A6832C #2CA646
square
#2C4FA6 #A62C8C #A6832C #2CA646
split-complementary
#2C4FA6 #A6462C #8CA62C
monochromatic
#122145 #1F3876 #2C4FA6 #426ACD #7390DA

Accessibility & contrast

On white

7.56
#2C4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2C4FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4FA6
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4FA6#FFFFFF#000000##FFFFFF
##2C4FA61.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4fa6;
/* rgb */ color: rgb(44, 79, 166);
/* oklch */ color: oklch(45.3% 0.146 264.7);
Tailwind
colors: {
  custom: {
    50: '#767fc1',
    500: '#2c4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2c4fa6;
$custom-light: #767fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4fa6",
  "rgb": {
    "r": 44,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 222.787,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45268,
    "c": 0.1462,
    "h": 264.7
  },
  "luminance": 0.08881
}

Semantic roles & 50–950 ramp

primary
#2C4FA6
secondary
#C1A96D
accent
#B546E1
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2C4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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