#2D4CBE#2D4CBE

#2D4CBE is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.182 H 267.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2D4CBE
RGBrgb(45, 76, 190)
HSLhsl(227, 62%, 46%)
HSVhsv(227, 76%, 75%)
CMYKcmyk(76.3%, 60%, 0%, 25.5%)
CIE-LABlab(36.82, 29.65, -63.07)
CIE-LCHlch(36.82, 69.69, 295.18°)
OKLaboklab(46.66% -0.0091 -0.1822)
OKLCHoklch(46.66% 0.182 267.1)
XYZxyz(12.9577, 9.4430, 49.8450)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4CBE #BE9F2D
analogous
#2D94BE #2D4CBE #562DBE
triadic
#2D4CBE #BE2D4C #4CBE2D
tetradic
#2D4CBE #BE2D94 #BE9F2D #2DBE56
square
#2D4CBE #BE2D94 #BE9F2D #2DBE56
split-complementary
#2D4CBE #BE562D #94BE2D
monochromatic
#16245B #21388D #2D4CBE #526ED6 #8498E2

Accessibility & contrast

On white

7.27
#2D4CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2D4CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4CBE
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4CBE#FFFFFF#000000##FFFFFF
##2D4CBE1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d4cbe;
/* rgb */ color: rgb(45, 76, 190);
/* oklch */ color: oklch(46.7% 0.182 267.1);
Tailwind
colors: {
  custom: {
    50: '#7c7dd3',
    500: '#2d4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #2d4cbe;
$custom-light: #7c7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4cbe",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 227.172,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46663,
    "c": 0.18243,
    "h": 267.1
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#2D4CBE
secondary
#CBBA7C
accent
#C243E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2D4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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