#2C4DAB#2C4DAB

#2C4DAB is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.2% C 0.156 H 265.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2C4DAB
RGBrgb(44, 77, 171)
HSLhsl(224, 59%, 42%)
HSVhsv(224, 74%, 67%)
CMYKcmyk(74.3%, 55%, 0%, 32.9%)
CIE-LABlab(35.56, 21.71, -53.90)
CIE-LCHlch(35.56, 58.11, 291.94°)
OKLaboklab(45.24% -0.0115 -0.1553)
OKLCHoklch(45.24% 0.156 265.8)
XYZxyz(11.0407, 8.7823, 39.6335)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DAB #AB8A2C
analogous
#2C8DAB #2C4DAB #4A2CAB
triadic
#2C4DAB #AB2C4D #4DAB2C
tetradic
#2C4DAB #AB2C8D #AB8A2C #2CAB4A
square
#2C4DAB #AB2C8D #AB8A2C #2CAB4A
split-complementary
#2C4DAB #AB4A2C #8DAB2C
monochromatic
#13214A #1F377A #2C4DAB #4569CF #7690DC

Accessibility & contrast

On white

7.62
#2C4DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2C4DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4DAB
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DAB#FFFFFF#000000##FFFFFF
##2C4DAB1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#004EA9
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c4dab;
/* rgb */ color: rgb(44, 77, 171);
/* oklch */ color: oklch(45.2% 0.156 265.8);
Tailwind
colors: {
  custom: {
    50: '#777ec5',
    500: '#2c4dab',
    950: '#000000',
  },
}
SCSS
$custom: #2c4dab;
$custom-light: #777ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4dab",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 171
  },
  "hsl": {
    "h": 224.409,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.1557,
    "h": 265.8
  },
  "luminance": 0.08784
}

Semantic roles & 50–950 ramp

primary
#2C4DAB
secondary
#C3AE6F
accent
#BA46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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