#2A4FAF#2A4FAF

#2A4FAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.159 H 264.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAF
RGBrgb(42, 79, 175)
HSLhsl(223, 61%, 43%)
HSVhsv(223, 76%, 69%)
CMYKcmyk(76%, 54.9%, 0%, 31.4%)
CIE-LABlab(36.33, 21.66, -55.04)
CIE-LCHlch(36.33, 59.15, 291.48°)
OKLaboklab(45.89% -0.0144 -0.1586)
OKLCHoklch(45.89% 0.159 264.8)
XYZxyz(11.4860, 9.1781, 41.7153)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAF #AF8A2A
analogous
#2A92AF #2A4FAF #472AAF
triadic
#2A4FAF #AF2A4F #4FAF2A
tetradic
#2A4FAF #AF2A92 #AF8A2A #2AAF47
square
#2A4FAF #AF2A92 #AF8A2A #2AAF47
split-complementary
#2A4FAF #AF472A #92AF2A
monochromatic
#12224C #1E397E #2A4FAF #446CD2 #7593DE

Accessibility & contrast

On white

7.41
#2A4FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2A4FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FAF
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAF#FFFFFF#000000##FFFFFF
##2A4FAF1.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4faf;
/* rgb */ color: rgb(42, 79, 175);
/* oklch */ color: oklch(45.9% 0.159 264.8);
Tailwind
colors: {
  custom: {
    50: '#777fc8',
    500: '#2a4faf',
    950: '#000000',
  },
}
SCSS
$custom: #2a4faf;
$custom-light: #777fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4faf",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 175
  },
  "hsl": {
    "h": 223.308,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45888,
    "c": 0.15929,
    "h": 264.8
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#2A4FAF
secondary
#C6AE6F
accent
#B843E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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