#2A62BC#2A62BC

#2A62BC is a mid, vivid blue. Relative luminance 0.129; OKLCH L 50.9% C 0.154 H 259.6°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2A62BC
RGBrgb(42, 98, 188)
HSLhsl(217, 63%, 45%)
HSVhsv(217, 78%, 74%)
CMYKcmyk(77.7%, 47.9%, 0%, 26.3%)
CIE-LABlab(42.55, 14.17, -52.62)
CIE-LCHlch(42.55, 54.50, 285.07°)
OKLaboklab(50.92% -0.0277 -0.1512)
OKLCHoklch(50.92% 0.154 259.6)
XYZxyz(14.3963, 12.8568, 49.2901)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A62BC #BC842A
analogous
#2AABBC #2A62BC #3B2ABC
triadic
#2A62BC #BC2A62 #62BC2A
tetradic
#2A62BC #BC2AAB #BC842A #2ABC3B
square
#2A62BC #BC2AAB #BC842A #2ABC3B
split-complementary
#2A62BC #BC3B2A #ABBC2A
monochromatic
#142E58 #1F488A #2A62BC #4C81D7 #7EA5E2

Accessibility & contrast

On white

5.88
#2A62BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2A62BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A62BC
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A62BC#FFFFFF#000000##FFFFFF
##2A62BC1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#306CBF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#007786
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a62bc;
/* rgb */ color: rgb(42, 98, 188);
/* oklch */ color: oklch(50.9% 0.154 259.6);
Tailwind
colors: {
  custom: {
    50: '#798ed1',
    500: '#2a62bc',
    950: '#000000',
  },
}
SCSS
$custom: #2a62bc;
$custom-light: #798ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a62bc",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 216.986,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5092,
    "c": 0.15369,
    "h": 259.6
  },
  "luminance": 0.12858
}

Semantic roles & 50–950 ramp

primary
#2A62BC
secondary
#CBAB77
accent
#A741E7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2A62BC

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

Preview Lab → · Contrast checker → · Palette generator →

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