#2A64BA#2A64BA

#2A64BA is a mid, vivid blue. Relative luminance 0.132; OKLCH L 51.2% C 0.149 H 258.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#2A64BA
RGBrgb(42, 100, 186)
HSLhsl(216, 63%, 45%)
HSVhsv(216, 77%, 73%)
CMYKcmyk(77.4%, 46.2%, 0%, 27.1%)
CIE-LABlab(42.99, 12.11, -50.75)
CIE-LCHlch(42.99, 52.17, 283.43°)
OKLaboklab(51.22% -0.0297 -0.1456)
OKLCHoklch(51.22% 0.149 258.5)
XYZxyz(14.3717, 13.1501, 48.2256)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A64BA #BA802A
analogous
#2AACBA #2A64BA #382ABA
triadic
#2A64BA #BA2A64 #64BA2A
tetradic
#2A64BA #BA2AAC #BA802A #2ABA38
square
#2A64BA #BA2AAC #BA802A #2ABA38
split-complementary
#2A64BA #BA382A #ACBA2A
monochromatic
#132E56 #1F4988 #2A64BA #4B83D6 #7DA5E2

Accessibility & contrast

On white

5.78
#2A64BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2A64BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A64BA
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A64BA#FFFFFF#000000##FFFFFF
##2A64BA1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBD
Deuteranopia (green-blind)
#125FB8
Tritanopia (blue-blind)
#007886
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2a64ba;
/* rgb */ color: rgb(42, 100, 186);
/* oklch */ color: oklch(51.2% 0.149 258.5);
Tailwind
colors: {
  custom: {
    50: '#798fcf',
    500: '#2a64ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a64ba;
$custom-light: #798fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a64ba",
  "rgb": {
    "r": 42,
    "g": 100,
    "b": 186
  },
  "hsl": {
    "h": 215.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51218,
    "c": 0.14861,
    "h": 258.5
  },
  "luminance": 0.13152
}

Semantic roles & 50–950 ramp

primary
#2A64BA
secondary
#CAA876
accent
#A442E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2A64BA

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

Preview Lab → · Contrast checker → · Palette generator →

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