#2D4CAC#2D4CAC

#2D4CAC is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.158 H 266.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2D4CAC
RGBrgb(45, 76, 172)
HSLhsl(225, 59%, 43%)
HSVhsv(225, 74%, 67%)
CMYKcmyk(73.8%, 55.8%, 0%, 32.5%)
CIE-LABlab(35.41, 22.89, -54.74)
CIE-LCHlch(35.41, 59.34, 292.69°)
OKLaboklab(45.16% -0.0097 -0.1577)
OKLCHoklch(45.16% 0.158 266.5)
XYZxyz(11.1104, 8.7041, 40.1163)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D4CAC #AC8D2D
analogous
#2D8CAC #2D4CAC #4D2DAC
triadic
#2D4CAC #AC2D4C #4CAC2D
tetradic
#2D4CAC #AC2D8C #AC8D2D #2DAC4D
square
#2D4CAC #AC2D8C #AC8D2D #2DAC4D
split-complementary
#2D4CAC #AC4D2D #8CAC2D
monochromatic
#14214B #20377B #2D4CAC #4768CF #7890DC

Accessibility & contrast

On white

7.66
#2D4CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2D4CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D4CAC
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D4CAC#FFFFFF#000000##FFFFFF
##2D4CAC1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004EAA
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2d4cac;
/* rgb */ color: rgb(45, 76, 172);
/* oklch */ color: oklch(45.2% 0.158 266.5);
Tailwind
colors: {
  custom: {
    50: '#787dc5',
    500: '#2d4cac',
    950: '#000000',
  },
}
SCSS
$custom: #2d4cac;
$custom-light: #787dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d4cac",
  "rgb": {
    "r": 45,
    "g": 76,
    "b": 172
  },
  "hsl": {
    "h": 225.354,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4516,
    "c": 0.15805,
    "h": 266.5
  },
  "luminance": 0.08705
}

Semantic roles & 50–950 ramp

primary
#2D4CAC
secondary
#C4AF71
accent
#BC46E2
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2D4CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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