#2A5CA2#2A5CA2

#2A5CA2 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.8% C 0.125 H 257.4°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2A5CA2
RGBrgb(42, 92, 162)
HSLhsl(215, 59%, 40%)
HSVhsv(215, 74%, 64%)
CMYKcmyk(74.1%, 43.2%, 0%, 36.5%)
CIE-LABlab(39.16, 8.10, -42.75)
CIE-LCHlch(39.16, 43.51, 280.72°)
OKLaboklab(47.78% -0.0273 -0.1222)
OKLCHoklch(47.78% 0.125 257.4)
XYZxyz(11.3012, 10.7539, 35.6555)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5CA2 #A2702A
analogous
#2A98A2 #2A5CA2 #342AA2
triadic
#2A5CA2 #A22A5C #5CA22A
tetradic
#2A5CA2 #A22A98 #A2702A #2AA234
square
#2A5CA2 #A22A98 #A2702A #2AA234
split-complementary
#2A5CA2 #A2342A #98A22A
monochromatic
#112541 #1D4071 #2A5CA2 #3D79CD #6D9AD9

Accessibility & contrast

On white

6.66
#2A5CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2A5CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5CA2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5CA2#FFFFFF#000000##FFFFFF
##2A5CA21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A62A5
Deuteranopia (green-blind)
#2557A1
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2a5ca2;
/* rgb */ color: rgb(42, 92, 162);
/* oklch */ color: oklch(47.8% 0.125 257.4);
Tailwind
colors: {
  custom: {
    50: '#7489be',
    500: '#2a5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #2a5ca2;
$custom-light: #7489be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5ca2",
  "rgb": {
    "r": 42,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 215,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.4778,
    "c": 0.12524,
    "h": 257.4
  },
  "luminance": 0.10755
}

Semantic roles & 50–950 ramp

primary
#2A5CA2
secondary
#C09B68
accent
#A146E2
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2A5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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