#2D4CBC#2D4CBC

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

Color values

HEX#2D4CBC
RGBrgb(45, 76, 188)
HSLhsl(227, 61%, 46%)
HSVhsv(227, 76%, 74%)
CMYKcmyk(76.1%, 59.6%, 0%, 26.3%)
CIE-LABlab(36.66, 28.90, -62.16)
CIE-LCHlch(36.66, 68.55, 294.94°)
OKLaboklab(46.49% -0.0091 -0.1795)
OKLCHoklch(46.49% 0.18 267.1)
XYZxyz(12.7406, 9.3562, 48.7017)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4CBC #BC9D2D
analogous
#2D93BC #2D4CBC #552DBC
triadic
#2D4CBC #BC2D4C #4CBC2D
tetradic
#2D4CBC #BC2D93 #BC9D2D #2DBC55
square
#2D4CBC #BC2D93 #BC9D2D #2DBC55
split-complementary
#2D4CBC #BC552D #93BC2D
monochromatic
#152459 #21388B #2D4CBC #516ED5 #8297E1

Accessibility & contrast

On white

7.31
#2D4CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2D4CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4CBC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4CBC#FFFFFF#000000##FFFFFF
##2D4CBC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2d4cbc;
/* rgb */ color: rgb(45, 76, 188);
/* oklch */ color: oklch(46.5% 0.180 267.1);
Tailwind
colors: {
  custom: {
    50: '#7b7dd1',
    500: '#2d4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #2d4cbc;
$custom-light: #7b7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4cbc",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 226.993,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.46492,
    "c": 0.17977,
    "h": 267.1
  },
  "luminance": 0.09358
}

Semantic roles & 50–950 ramp

primary
#2D4CBC
secondary
#CAB97B
accent
#C243E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2D4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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