#2A5FAC#2A5FAC

#2A5FAC is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.1% C 0.135 H 258.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#2A5FAC
RGBrgb(42, 95, 172)
HSLhsl(216, 61%, 42%)
HSVhsv(216, 76%, 67%)
CMYKcmyk(75.6%, 44.8%, 0%, 32.5%)
CIE-LABlab(40.66, 9.98, -46.28)
CIE-LCHlch(40.66, 47.34, 282.17°)
OKLaboklab(49.14% -0.028 -0.1325)
OKLCHoklch(49.14% 0.135 258.1)
XYZxyz(12.4907, 11.6538, 40.6128)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5FAC #AC772A
analogous
#2AA0AC #2A5FAC #362AAC
triadic
#2A5FAC #AC2A5F #5FAC2A
tetradic
#2A5FAC #AC2AA0 #AC772A #2AAC36
square
#2A5FAC #AC2AA0 #AC772A #2AAC36
split-complementary
#2A5FAC #AC362A #A0AC2A
monochromatic
#12294A #1E447B #2A5FAC #427CD1 #739EDD

Accessibility & contrast

On white

6.30
#2A5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2A5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A5FAC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5FAC#FFFFFF#000000##FFFFFF
##2A5FAC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AF
Deuteranopia (green-blind)
#1E5AAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2a5fac;
/* rgb */ color: rgb(42, 95, 172);
/* oklch */ color: oklch(49.1% 0.135 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bc5',
    500: '#2a5fac',
    950: '#000000',
  },
}
SCSS
$custom: #2a5fac;
$custom-light: #768bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5fac",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 215.538,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49137,
    "c": 0.13548,
    "h": 258.1
  },
  "luminance": 0.11655
}

Semantic roles & 50–950 ramp

primary
#2A5FAC
secondary
#C4A16D
accent
#A344E4
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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