#2A5AAC#2A5AAC

#2A5AAC is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.141 H 260.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#2A5AAC
RGBrgb(42, 90, 172)
HSLhsl(218, 61%, 42%)
HSVhsv(218, 76%, 67%)
CMYKcmyk(75.6%, 47.7%, 0%, 32.5%)
CIE-LABlab(39.21, 13.24, -48.60)
CIE-LCHlch(39.21, 50.38, 285.23°)
OKLaboklab(48.02% -0.0236 -0.1395)
OKLCHoklch(48.02% 0.141 260.4)
XYZxyz(12.0547, 10.7818, 40.4675)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AAC #AC7C2A
analogous
#2A9BAC #2A5AAC #3B2AAC
triadic
#2A5AAC #AC2A5A #5AAC2A
tetradic
#2A5AAC #AC2A9B #AC7C2A #2AAC3B
square
#2A5AAC #AC2A9B #AC7C2A #2AAC3B
split-complementary
#2A5AAC #AC3B2A #9BAC2A
monochromatic
#12274A #1E407B #2A5AAC #4277D1 #739ADD

Accessibility & contrast

On white

6.65
#2A5AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2A5AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AAC
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AAC#FFFFFF#000000##FFFFFF
##2A5AAC1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D63AF
Deuteranopia (green-blind)
#0857AA
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5aac;
/* rgb */ color: rgb(42, 90, 172);
/* oklch */ color: oklch(48.0% 0.141 260.4);
Tailwind
colors: {
  custom: {
    50: '#7688c5',
    500: '#2a5aac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aac;
$custom-light: #7688c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aac",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 172
  },
  "hsl": {
    "h": 217.846,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4802,
    "c": 0.14149,
    "h": 260.4
  },
  "luminance": 0.10783
}

Semantic roles & 50–950 ramp

primary
#2A5AAC
secondary
#C4A46D
accent
#A944E4
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2A5AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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