#2A62BA#2A62BA

#2A62BA is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.8% C 0.151 H 259.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2A62BA
RGBrgb(42, 98, 186)
HSLhsl(217, 63%, 45%)
HSVhsv(217, 77%, 73%)
CMYKcmyk(77.4%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.42, 13.40, -51.67)
CIE-LCHlch(42.42, 53.38, 284.54°)
OKLaboklab(50.78% -0.0281 -0.1484)
OKLCHoklch(50.78% 0.151 259.3)
XYZxyz(14.1822, 12.7711, 48.1625)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A62BA #BA822A
analogous
#2AAABA #2A62BA #3A2ABA
triadic
#2A62BA #BA2A62 #62BA2A
tetradic
#2A62BA #BA2AAA #BA822A #2ABA3A
square
#2A62BA #BA2AAA #BA822A #2ABA3A
split-complementary
#2A62BA #BA3A2A #AABA2A
monochromatic
#132D56 #1F4888 #2A62BA #4B81D6 #7DA4E2

Accessibility & contrast

On white

5.91
#2A62BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2A62BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A62BA
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A62BA#FFFFFF#000000##FFFFFF
##2A62BA1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326BBD
Deuteranopia (green-blind)
#065EB8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a62ba;
/* rgb */ color: rgb(42, 98, 186);
/* oklch */ color: oklch(50.8% 0.151 259.3);
Tailwind
colors: {
  custom: {
    50: '#798ecf',
    500: '#2a62ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a62ba;
$custom-light: #798ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a62ba",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 216.667,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50778,
    "c": 0.15099,
    "h": 259.3
  },
  "luminance": 0.12773
}

Semantic roles & 50–950 ramp

primary
#2A62BA
secondary
#CAA976
accent
#A642E6
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2A62BA

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

Preview Lab → · Contrast checker → · Palette generator →

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