#2A4CBC#2A4CBC

#2A4CBC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.181 H 266.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#2A4CBC
RGBrgb(42, 76, 188)
HSLhsl(226, 63%, 45%)
HSVhsv(226, 78%, 74%)
CMYKcmyk(77.7%, 59.6%, 0%, 26.3%)
CIE-LABlab(36.54, 28.58, -62.36)
CIE-LCHlch(36.54, 68.60, 294.62°)
OKLaboklab(46.37% -0.0116 -0.1802)
OKLCHoklch(46.37% 0.181 266.3)
XYZxyz(12.6132, 9.2905, 48.6957)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CBC #BC9A2A
analogous
#2A95BC #2A4CBC #512ABC
triadic
#2A4CBC #BC2A4C #4CBC2A
tetradic
#2A4CBC #BC2A95 #BC9A2A #2ABC51
square
#2A4CBC #BC2A95 #BC9A2A #2ABC51
split-complementary
#2A4CBC #BC512A #95BC2A
monochromatic
#142458 #1F388A #2A4CBC #4C6DD7 #7E95E2

Accessibility & contrast

On white

7.35
#2A4CBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2A4CBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4CBC
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CBC#FFFFFF#000000##FFFFFF
##2A4CBC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4cbc;
/* rgb */ color: rgb(42, 76, 188);
/* oklch */ color: oklch(46.4% 0.181 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a7dd1',
    500: '#2a4cbc',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cbc;
$custom-light: #7a7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cbc",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 188
  },
  "hsl": {
    "h": 226.027,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46365,
    "c": 0.18057,
    "h": 266.3
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

primary
#2A4CBC
secondary
#CBB777
accent
#C041E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2A4CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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