#2A4EC3#2A4EC3

#2A4EC3 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.187 H 266.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2A4EC3
RGBrgb(42, 78, 195)
HSLhsl(226, 65%, 46%)
HSVhsv(226, 78%, 76%)
CMYKcmyk(78.5%, 60%, 0%, 23.5%)
CIE-LABlab(37.63, 29.90, -64.68)
CIE-LCHlch(37.63, 71.26, 294.81°)
OKLaboklab(47.35% -0.0127 -0.187)
OKLCHoklch(47.35% 0.187 266.1)
XYZxyz(13.5261, 9.8796, 52.8133)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EC3 #C39F2A
analogous
#2A9BC3 #2A4EC3 #522AC3
triadic
#2A4EC3 #C32A4E #4EC32A
tetradic
#2A4EC3 #C32A9B #C39F2A #2AC352
square
#2A4EC3 #C32A9B #C39F2A #2AC352
split-complementary
#2A4EC3 #C3522A #9BC32A
monochromatic
#14265E #1F3A91 #2A4EC3 #5171D9 #839AE4

Accessibility & contrast

On white

7.06
#2A4EC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2A4EC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4EC3
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EC3#FFFFFF#000000##FFFFFF
##2A4EC31.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#006C81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2a4ec3;
/* rgb */ color: rgb(42, 78, 195);
/* oklch */ color: oklch(47.4% 0.187 266.1);
Tailwind
colors: {
  custom: {
    50: '#7c7fd6',
    500: '#2a4ec3',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ec3;
$custom-light: #7c7fd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ec3",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 195
  },
  "hsl": {
    "h": 225.882,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47354,
    "c": 0.18741,
    "h": 266.1
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#2A4EC3
secondary
#CDBA7B
accent
#C040E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A4EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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