#2A4FAC#2A4FAC

#2A4FAC is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.155 H 264.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2A4FAC
RGBrgb(42, 79, 172)
HSLhsl(223, 61%, 42%)
HSVhsv(223, 76%, 67%)
CMYKcmyk(75.6%, 54.1%, 0%, 32.5%)
CIE-LABlab(36.10, 20.51, -53.62)
CIE-LCHlch(36.10, 57.41, 290.93°)
OKLaboklab(45.65% -0.0146 -0.1545)
OKLCHoklch(45.65% 0.155 264.6)
XYZxyz(11.1946, 9.0615, 40.1808)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4FAC #AC872A
analogous
#2A90AC #2A4FAC #462AAC
triadic
#2A4FAC #AC2A4F #4FAC2A
tetradic
#2A4FAC #AC2A90 #AC872A #2AAC46
square
#2A4FAC #AC2A90 #AC872A #2AAC46
split-complementary
#2A4FAC #AC462A #90AC2A
monochromatic
#12224A #1E387B #2A4FAC #426BD1 #7391DD

Accessibility & contrast

On white

7.47
#2A4FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A4FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4FAC
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4FAC#FFFFFF#000000##FFFFFF
##2A4FAC1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045BAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006676
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a4fac;
/* rgb */ color: rgb(42, 79, 172);
/* oklch */ color: oklch(45.6% 0.155 264.6);
Tailwind
colors: {
  custom: {
    50: '#767fc5',
    500: '#2a4fac',
    950: '#000000',
  },
}
SCSS
$custom: #2a4fac;
$custom-light: #767fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4fac",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 172
  },
  "hsl": {
    "h": 222.923,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45649,
    "c": 0.15516,
    "h": 264.6
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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