#2D4CB2#2D4CB2

#2D4CB2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.166 H 266.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2D4CB2
RGBrgb(45, 76, 178)
HSLhsl(226, 60%, 44%)
HSVhsv(226, 75%, 70%)
CMYKcmyk(74.7%, 57.3%, 0%, 30.2%)
CIE-LABlab(35.87, 25.15, -57.56)
CIE-LCHlch(35.87, 62.81, 293.61°)
OKLaboklab(45.65% -0.0094 -0.166)
OKLCHoklch(45.65% 0.166 266.8)
XYZxyz(11.6997, 8.9399, 43.2198)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4CB2 #B2932D
analogous
#2D8EB2 #2D4CB2 #502DB2
triadic
#2D4CB2 #B22D4C #4CB22D
tetradic
#2D4CB2 #B22D8E #B2932D #2DB250
square
#2D4CB2 #B22D8E #B2932D #2DB250
split-complementary
#2D4CB2 #B2502D #8EB22D
monochromatic
#142250 #213781 #2D4CB2 #4B6AD1 #7C92DE

Accessibility & contrast

On white

7.53
#2D4CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2D4CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4CB2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4CB2#FFFFFF#000000##FFFFFF
##2D4CB21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2d4cb2;
/* rgb */ color: rgb(45, 76, 178);
/* oklch */ color: oklch(45.7% 0.166 266.8);
Tailwind
colors: {
  custom: {
    50: '#797dca',
    500: '#2d4cb2',
    950: '#000000',
  },
}
SCSS
$custom: #2d4cb2;
$custom-light: #797dca;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4cb2",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 226.015,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.45651,
    "c": 0.16629,
    "h": 266.8
  },
  "luminance": 0.08941
}

Semantic roles & 50–950 ramp

primary
#2D4CB2
secondary
#C6B375
accent
#BE45E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2D4CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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