#2C4DB9#2C4DB9

#2C4DB9 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.175 H 266.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2C4DB9
RGBrgb(44, 77, 185)
HSLhsl(226, 62%, 45%)
HSVhsv(226, 76%, 73%)
CMYKcmyk(76.2%, 58.4%, 0%, 27.5%)
CIE-LABlab(36.64, 27.01, -60.43)
CIE-LCHlch(36.64, 66.19, 294.08°)
OKLaboklab(46.39% -0.0107 -0.1745)
OKLCHoklch(46.39% 0.175 266.5)
XYZxyz(12.4465, 9.3446, 47.0373)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DB9 #B9982C
analogous
#2C94B9 #2C4DB9 #512CB9
triadic
#2C4DB9 #B92C4D #4DB92C
tetradic
#2C4DB9 #B92C94 #B9982C #2CB951
square
#2C4DB9 #B92C94 #B9982C #2CB951
split-complementary
#2C4DB9 #B9512C #94B92C
monochromatic
#142456 #203888 #2C4DB9 #4D6DD5 #7F96E1

Accessibility & contrast

On white

7.32
#2C4DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4DB9
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DB9#FFFFFF#000000##FFFFFF
##2C4DB91.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#0050B7
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2c4db9;
/* rgb */ color: rgb(44, 77, 185);
/* oklch */ color: oklch(46.4% 0.175 266.5);
Tailwind
colors: {
  custom: {
    50: '#7a7ecf',
    500: '#2c4db9',
    950: '#000000',
  },
}
SCSS
$custom: #2c4db9;
$custom-light: #7a7ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4db9",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 185
  },
  "hsl": {
    "h": 225.957,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46389,
    "c": 0.17481,
    "h": 266.5
  },
  "luminance": 0.09346
}

Semantic roles & 50–950 ramp

primary
#2C4DB9
secondary
#C9B678
accent
#BF43E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2C4DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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