#2C4DB1#2C4DB1

#2C4DB1 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.7% C 0.164 H 266.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2C4DB1
RGBrgb(44, 77, 177)
HSLhsl(225, 60%, 43%)
HSVhsv(225, 75%, 69%)
CMYKcmyk(75.1%, 56.5%, 0%, 30.6%)
CIE-LABlab(36.02, 23.99, -56.73)
CIE-LCHlch(36.02, 61.59, 292.92°)
OKLaboklab(45.73% -0.0111 -0.1636)
OKLCHoklch(45.73% 0.164 266.1)
XYZxyz(11.6256, 9.0163, 42.7141)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DB1 #B1902C
analogous
#2C8FB1 #2C4DB1 #4D2CB1
triadic
#2C4DB1 #B12C4D #4DB12C
tetradic
#2C4DB1 #B12C8F #B1902C #2CB14D
square
#2C4DB1 #B12C8F #B1902C #2CB14D
split-complementary
#2C4DB1 #B14D2C #8FB12C
monochromatic
#14224F #203880 #2C4DB1 #496BD2 #7A92DE

Accessibility & contrast

On white

7.49
#2C4DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2C4DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4DB1
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DB1#FFFFFF#000000##FFFFFF
##2C4DB11.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB4
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2c4db1;
/* rgb */ color: rgb(44, 77, 177);
/* oklch */ color: oklch(45.7% 0.164 266.1);
Tailwind
colors: {
  custom: {
    50: '#787ec9',
    500: '#2c4db1',
    950: '#000000',
  },
}
SCSS
$custom: #2c4db1;
$custom-light: #787ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4db1",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 177
  },
  "hsl": {
    "h": 225.113,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45725,
    "c": 0.16396,
    "h": 266.1
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#2C4DB1
secondary
#C6B173
accent
#BC44E3
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2C4DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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