#2D4CB1#2D4CB1

#2D4CB1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.6% C 0.165 H 266.7°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2D4CB1
RGBrgb(45, 76, 177)
HSLhsl(226, 59%, 44%)
HSVhsv(226, 75%, 69%)
CMYKcmyk(74.6%, 57.1%, 0%, 30.6%)
CIE-LABlab(35.79, 24.78, -57.09)
CIE-LCHlch(35.79, 62.23, 293.46°)
OKLaboklab(45.57% -0.0095 -0.1646)
OKLCHoklch(45.57% 0.165 266.7)
XYZxyz(11.5997, 8.8998, 42.6930)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4CB1 #B1922D
analogous
#2D8EB1 #2D4CB1 #502DB1
triadic
#2D4CB1 #B12D4C #4CB12D
tetradic
#2D4CB1 #B12D8E #B1922D #2DB150
square
#2D4CB1 #B12D8E #B1922D #2DB150
split-complementary
#2D4CB1 #B1502D #8EB12D
monochromatic
#14224F #213780 #2D4CB1 #4A6AD1 #7B92DD

Accessibility & contrast

On white

7.55
#2D4CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2D4CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4CB1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4CB1#FFFFFF#000000##FFFFFF
##2D4CB11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4cb1;
/* rgb */ color: rgb(45, 76, 177);
/* oklch */ color: oklch(45.6% 0.165 266.7);
Tailwind
colors: {
  custom: {
    50: '#797dc9',
    500: '#2d4cb1',
    950: '#000000',
  },
}
SCSS
$custom: #2d4cb1;
$custom-light: #797dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4cb1",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 177
  },
  "hsl": {
    "h": 225.909,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45568,
    "c": 0.16492,
    "h": 266.7
  },
  "luminance": 0.08901
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D4CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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