#2A61BA#2A61BA

#2A61BA is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.6% C 0.152 H 259.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2A61BA
RGBrgb(42, 97, 186)
HSLhsl(217, 63%, 45%)
HSVhsv(217, 77%, 73%)
CMYKcmyk(77.4%, 47.8%, 0%, 27.1%)
CIE-LABlab(42.13, 14.05, -52.13)
CIE-LCHlch(42.13, 53.99, 285.09°)
OKLaboklab(50.56% -0.0272 -0.1497)
OKLCHoklch(50.56% 0.152 259.7)
XYZxyz(14.0892, 12.5852, 48.1315)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A61BA #BA832A
analogous
#2AA9BA #2A61BA #3B2ABA
triadic
#2A61BA #BA2A61 #61BA2A
tetradic
#2A61BA #BA2AA9 #BA832A #2ABA3B
square
#2A61BA #BA2AA9 #BA832A #2ABA3B
split-complementary
#2A61BA #BA3B2A #A9BA2A
monochromatic
#132D56 #1F4788 #2A61BA #4B80D6 #7DA3E2

Accessibility & contrast

On white

5.97
#2A61BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A61BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A61BA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A61BA#FFFFFF#000000##FFFFFF
##2A61BA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABD
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#007684
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a61ba;
/* rgb */ color: rgb(42, 97, 186);
/* oklch */ color: oklch(50.6% 0.152 259.7);
Tailwind
colors: {
  custom: {
    50: '#798dcf',
    500: '#2a61ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a61ba;
$custom-light: #798dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a61ba",
  "rgb": {
    "r": 42,
    "g": 97,
    "b": 186
  },
  "hsl": {
    "h": 217.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50559,
    "c": 0.15219,
    "h": 259.7
  },
  "luminance": 0.12587
}

Semantic roles & 50–950 ramp

primary
#2A61BA
secondary
#CAAA76
accent
#A742E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2A61BA

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

Preview Lab → · Contrast checker → · Palette generator →

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