#2A5FCA#2A5FCA

#2A5FCA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.176 H 262.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2A5FCA
RGBrgb(42, 95, 202)
HSLhsl(220, 66%, 48%)
HSVhsv(220, 79%, 79%)
CMYKcmyk(79.2%, 53%, 0%, 20.8%)
CIE-LABlab(42.67, 21.47, -60.53)
CIE-LCHlch(42.67, 64.23, 289.53°)
OKLaboklab(51.32% -0.0237 -0.1745)
OKLCHoklch(51.32% 0.176 262.3)
XYZxyz(15.7039, 12.9391, 57.5355)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FCA #CA952A
analogous
#2AAFCA #2A5FCA #452ACA
triadic
#2A5FCA #CA2A5F #5FCA2A
tetradic
#2A5FCA #CA2AAF #CA952A #2ACA45
square
#2A5FCA #CA2AAF #CA952A #2ACA45
split-complementary
#2A5FCA #CA452A #AFCA2A
monochromatic
#152F65 #1F4797 #2A5FCA #5582DC #88A7E6

Accessibility & contrast

On white

5.85
#2A5FCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2A5FCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FCA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FCA#FFFFFF#000000##FFFFFF
##2A5FCA1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6CCE
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a5fca;
/* rgb */ color: rgb(42, 95, 202);
/* oklch */ color: oklch(51.3% 0.176 262.3);
Tailwind
colors: {
  custom: {
    50: '#7d8bdb',
    500: '#2a5fca',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fca;
$custom-light: #7d8bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fca",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 202
  },
  "hsl": {
    "h": 220.125,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.1761,
    "h": 262.3
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#2A5FCA
secondary
#D0B580
accent
#B03FE9
background
#F8F8FD
surface
#EFF0FB
border
#CACBD4
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2A5FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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