#2A5AA2#2A5AA2

#2A5AA2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.3% C 0.128 H 258.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2A5AA2
RGBrgb(42, 90, 162)
HSLhsl(216, 59%, 40%)
HSVhsv(216, 74%, 64%)
CMYKcmyk(74.1%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.57, 9.40, -43.69)
CIE-LCHlch(38.57, 44.69, 282.14°)
OKLaboklab(47.32% -0.0254 -0.125)
OKLCHoklch(47.32% 0.128 258.5)
XYZxyz(11.1302, 10.4120, 35.5985)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5AA2 #A2722A
analogous
#2A96A2 #2A5AA2 #362AA2
triadic
#2A5AA2 #A22A5A #5AA22A
tetradic
#2A5AA2 #A22A96 #A2722A #2AA236
square
#2A5AA2 #A22A96 #A2722A #2AA236
split-complementary
#2A5AA2 #A2362A #96A22A
monochromatic
#112441 #1D3F71 #2A5AA2 #3D76CD #6D98D9

Accessibility & contrast

On white

6.81
#2A5AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2A5AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5AA2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5AA2#FFFFFF#000000##FFFFFF
##2A5AA21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#2056A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2a5aa2;
/* rgb */ color: rgb(42, 90, 162);
/* oklch */ color: oklch(47.3% 0.128 258.5);
Tailwind
colors: {
  custom: {
    50: '#7488be',
    500: '#2a5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5aa2;
$custom-light: #7488be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5aa2",
  "rgb": {
    "r": 42,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 216,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.47322,
    "c": 0.1276,
    "h": 258.5
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#2A5AA2
secondary
#C09D68
accent
#A446E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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