#2A62B4#2A62B4

#2A62B4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.4% C 0.143 H 258.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2A62B4
RGBrgb(42, 98, 180)
HSLhsl(216, 62%, 44%)
HSVhsv(216, 77%, 71%)
CMYKcmyk(76.7%, 45.6%, 0%, 29.4%)
CIE-LABlab(42.03, 11.11, -48.78)
CIE-LCHlch(42.03, 50.03, 282.83°)
OKLaboklab(50.36% -0.0291 -0.1399)
OKLCHoklch(50.36% 0.143 258.2)
XYZxyz(13.5577, 12.5213, 44.8735)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A62B4 #B47C2A
analogous
#2AA7B4 #2A62B4 #372AB4
triadic
#2A62B4 #B42A62 #62B42A
tetradic
#2A62B4 #B42AA7 #B47C2A #2AB437
square
#2A62B4 #B42AA7 #B47C2A #2AB437
split-complementary
#2A62B4 #B4372A #A7B42A
monochromatic
#132C51 #1E4782 #2A62B4 #4780D4 #79A3E0

Accessibility & contrast

On white

5.99
#2A62B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#2A62B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A62B4
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A62B4#FFFFFF#000000##FFFFFF
##2A62B41.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#195DB2
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a62b4;
/* rgb */ color: rgb(42, 98, 180);
/* oklch */ color: oklch(50.4% 0.143 258.2);
Tailwind
colors: {
  custom: {
    50: '#778ecb',
    500: '#2a62b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a62b4;
$custom-light: #778ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a62b4",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 180
  },
  "hsl": {
    "h": 215.652,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50359,
    "c": 0.14286,
    "h": 258.2
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#2A62B4
secondary
#C8A572
accent
#A343E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A62B4

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

Preview Lab → · Contrast checker → · Palette generator →

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