#2D4EB1#2D4EB1

#2D4EB1 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.0% C 0.162 H 266.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2D4EB1
RGBrgb(45, 78, 177)
HSLhsl(225, 59%, 44%)
HSVhsv(225, 75%, 69%)
CMYKcmyk(74.6%, 55.9%, 0%, 30.6%)
CIE-LABlab(36.33, 23.45, -56.22)
CIE-LCHlch(36.33, 60.91, 292.65°)
OKLaboklab(45.97% -0.011 -0.1621)
OKLCHoklch(45.97% 0.162 266.1)
XYZxyz(11.7396, 9.1797, 42.7396)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4EB1 #B1902D
analogous
#2D90B1 #2D4EB1 #4E2DB1
triadic
#2D4EB1 #B12D4E #4EB12D
tetradic
#2D4EB1 #B12D90 #B1902D #2DB14E
square
#2D4EB1 #B12D90 #B1902D #2DB14E
split-complementary
#2D4EB1 #B14E2D #90B12D
monochromatic
#14234F #213880 #2D4EB1 #4A6CD1 #7B94DD

Accessibility & contrast

On white

7.40
#2D4EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2D4EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4EB1
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4EB1#FFFFFF#000000##FFFFFF
##2D4EB11.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB4
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2d4eb1;
/* rgb */ color: rgb(45, 78, 177);
/* oklch */ color: oklch(46.0% 0.162 266.1);
Tailwind
colors: {
  custom: {
    50: '#797fc9',
    500: '#2d4eb1',
    950: '#000000',
  },
}
SCSS
$custom: #2d4eb1;
$custom-light: #797fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4eb1",
  "rgb": {
    "r": 45,
    "g": 78,
    "b": 177
  },
  "hsl": {
    "h": 225,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.16243,
    "h": 266.1
  },
  "luminance": 0.09181
}

Semantic roles & 50–950 ramp

primary
#2D4EB1
secondary
#C6B174
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2D4EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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