#2A4FAA#2A4FAA

#2A4FAA is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.5% C 0.152 H 264.4°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAA
RGBrgb(42, 79, 170)
HSLhsl(223, 60%, 42%)
HSVhsv(223, 75%, 67%)
CMYKcmyk(75.3%, 53.5%, 0%, 33.3%)
CIE-LABlab(35.96, 19.74, -52.67)
CIE-LCHlch(35.96, 56.25, 290.55°)
OKLaboklab(45.49% -0.0148 -0.1517)
OKLCHoklch(45.49% 0.152 264.4)
XYZxyz(11.0040, 8.9853, 39.1768)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAA #AA852A
analogous
#2A8FAA #2A4FAA #452AAA
triadic
#2A4FAA #AA2A4F #4FAA2A
tetradic
#2A4FAA #AA2A8F #AA852A #2AAA45
square
#2A4FAA #AA2A8F #AA852A #2AAA45
split-complementary
#2A4FAA #AA452A #8FAA2A
monochromatic
#122148 #1E3879 #2A4FAA #416AD0 #7291DC

Accessibility & contrast

On white

7.51
#2A4FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A4FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FAA
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAA#FFFFFF#000000##FFFFFF
##2A4FAA1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5BAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4faa;
/* rgb */ color: rgb(42, 79, 170);
/* oklch */ color: oklch(45.5% 0.152 264.4);
Tailwind
colors: {
  custom: {
    50: '#767fc4',
    500: '#2a4faa',
    950: '#000000',
  },
}
SCSS
$custom: #2a4faa;
$custom-light: #767fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4faa",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 170
  },
  "hsl": {
    "h": 222.656,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.15238,
    "h": 264.4
  },
  "luminance": 0.08986
}

Semantic roles & 50–950 ramp

primary
#2A4FAA
secondary
#C3AA6C
accent
#B544E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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