#2A62B5#2A62B5

#2A62B5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.4% C 0.144 H 258.4°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2A62B5
RGBrgb(42, 98, 181)
HSLhsl(216, 62%, 44%)
HSVhsv(216, 77%, 71%)
CMYKcmyk(76.8%, 45.9%, 0%, 29%)
CIE-LABlab(42.10, 11.49, -49.26)
CIE-LCHlch(42.10, 50.58, 283.13°)
OKLaboklab(50.43% -0.0289 -0.1413)
OKLCHoklch(50.43% 0.144 258.4)
XYZxyz(13.6600, 12.5622, 45.4119)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A62B5 #B57D2A
analogous
#2AA7B5 #2A62B5 #372AB5
triadic
#2A62B5 #B52A62 #62B52A
tetradic
#2A62B5 #B52AA7 #B57D2A #2AB537
square
#2A62B5 #B52AA7 #B57D2A #2AB537
split-complementary
#2A62B5 #B5372A #A7B52A
monochromatic
#132C52 #1E4783 #2A62B5 #4880D4 #79A3E0

Accessibility & contrast

On white

5.98
#2A62B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2A62B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A62B5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A62B5#FFFFFF#000000##FFFFFF
##2A62B51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB8
Deuteranopia (green-blind)
#165DB3
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a62b5;
/* rgb */ color: rgb(42, 98, 181);
/* oklch */ color: oklch(50.4% 0.144 258.4);
Tailwind
colors: {
  custom: {
    50: '#788ecc',
    500: '#2a62b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a62b5;
$custom-light: #788ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a62b5",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 181
  },
  "hsl": {
    "h": 215.827,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50428,
    "c": 0.14421,
    "h": 258.4
  },
  "luminance": 0.12564
}

Semantic roles & 50–950 ramp

primary
#2A62B5
secondary
#C8A673
accent
#A442E5
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A62B5

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

Preview Lab → · Contrast checker → · Palette generator →

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