#2A4FAB#2A4FAB

#2A4FAB is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.6% C 0.154 H 264.5°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAB
RGBrgb(42, 79, 171)
HSLhsl(223, 61%, 42%)
HSVhsv(223, 75%, 67%)
CMYKcmyk(75.4%, 53.8%, 0%, 32.9%)
CIE-LABlab(36.03, 20.13, -53.15)
CIE-LCHlch(36.03, 56.83, 290.74°)
OKLaboklab(45.57% -0.0147 -0.1531)
OKLCHoklch(45.57% 0.154 264.5)
XYZxyz(11.0989, 9.0233, 39.6769)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAB #AB862A
analogous
#2A90AB #2A4FAB #462AAB
triadic
#2A4FAB #AB2A4F #4FAB2A
tetradic
#2A4FAB #AB2A90 #AB862A #2AAB46
square
#2A4FAB #AB2A90 #AB862A #2AAB46
split-complementary
#2A4FAB #AB462A #90AB2A
monochromatic
#122249 #1E387A #2A4FAB #426BD1 #7391DD

Accessibility & contrast

On white

7.49
#2A4FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4FAB
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAB#FFFFFF#000000##FFFFFF
##2A4FAB1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#085BAE
Deuteranopia (green-blind)
#004FA9
Tritanopia (blue-blind)
#006575
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4fab;
/* rgb */ color: rgb(42, 79, 171);
/* oklch */ color: oklch(45.6% 0.154 264.5);
Tailwind
colors: {
  custom: {
    50: '#767fc5',
    500: '#2a4fab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fab;
$custom-light: #767fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fab",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 171
  },
  "hsl": {
    "h": 222.791,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4557,
    "c": 0.15377,
    "h": 264.5
  },
  "luminance": 0.09024
}

Semantic roles & 50–950 ramp

primary
#2A4FAB
secondary
#C4AB6D
accent
#B644E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A4FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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