#2C4DBD#2C4DBD

#2C4DBD is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.180 H 266.6°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2C4DBD
RGBrgb(44, 77, 189)
HSLhsl(226, 62%, 46%)
HSVhsv(226, 77%, 74%)
CMYKcmyk(76.7%, 59.3%, 0%, 25.9%)
CIE-LABlab(36.96, 28.51, -62.26)
CIE-LCHlch(36.96, 68.48, 294.61°)
OKLaboklab(46.73% -0.0106 -0.1798)
OKLCHoklch(46.73% 0.18 266.6)
XYZxyz(12.8747, 9.5159, 49.2925)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4DBD #BD9C2C
analogous
#2C95BD #2C4DBD #532CBD
triadic
#2C4DBD #BD2C4D #4DBD2C
tetradic
#2C4DBD #BD2C95 #BD9C2C #2CBD53
square
#2C4DBD #BD2C95 #BD9C2C #2CBD53
split-complementary
#2C4DBD #BD532C #95BD2C
monochromatic
#15255A #20398B #2C4DBD #506FD6 #8297E2

Accessibility & contrast

On white

7.23
#2C4DBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2C4DBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C4DBD
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4DBD#FFFFFF#000000##FFFFFF
##2C4DBD1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c4dbd;
/* rgb */ color: rgb(44, 77, 189);
/* oklch */ color: oklch(46.7% 0.180 266.6);
Tailwind
colors: {
  custom: {
    50: '#7b7ed2',
    500: '#2c4dbd',
    950: '#000000',
  },
}
SCSS
$custom: #2c4dbd;
$custom-light: #7b7ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4dbd",
  "rgb": {
    "r": 44,
    "g": 77,
    "b": 189
  },
  "hsl": {
    "h": 226.345,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46727,
    "c": 0.18015,
    "h": 266.6
  },
  "luminance": 0.09517
}

Semantic roles & 50–950 ramp

primary
#2C4DBD
secondary
#CBB87A
accent
#C042E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2C4DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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