#2A4EC9#2A4EC9

#2A4EC9 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.195 H 266.3°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#2A4EC9
RGBrgb(42, 78, 201)
HSLhsl(226, 65%, 48%)
HSVhsv(226, 79%, 79%)
CMYKcmyk(79.1%, 61.2%, 0%, 21.2%)
CIE-LABlab(38.12, 32.14, -67.36)
CIE-LCHlch(38.12, 74.64, 295.51°)
OKLaboklab(47.88% -0.0127 -0.1948)
OKLCHoklch(47.88% 0.195 266.3)
XYZxyz(14.2181, 10.1564, 56.4580)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4EC9 #C9A52A
analogous
#2A9EC9 #2A4EC9 #552AC9
triadic
#2A4EC9 #C92A4E #4EC92A
tetradic
#2A4EC9 #C92A9E #C9A52A #2AC955
square
#2A4EC9 #C92A9E #C9A52A #2AC955
split-complementary
#2A4EC9 #C9552A #9EC92A
monochromatic
#152764 #1F3A96 #2A4EC9 #5573DB #879DE6

Accessibility & contrast

On white

6.93
#2A4EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2A4EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A4EC9
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4EC9#FFFFFF#000000##FFFFFF
##2A4EC91.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CD
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#006E84
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a4ec9;
/* rgb */ color: rgb(42, 78, 201);
/* oklch */ color: oklch(47.9% 0.195 266.3);
Tailwind
colors: {
  custom: {
    50: '#7d7fda',
    500: '#2a4ec9',
    950: '#000000',
  },
}
SCSS
$custom: #2a4ec9;
$custom-light: #7d7fda;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4ec9",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 201
  },
  "hsl": {
    "h": 226.415,
    "s": 65.432,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47877,
    "c": 0.19524,
    "h": 266.3
  },
  "luminance": 0.10158
}

Semantic roles & 50–950 ramp

primary
#2A4EC9
secondary
#D0BD7F
accent
#C23FE8
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2A4EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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