#2A62B2#2A62B2

#2A62B2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.2% C 0.140 H 257.9°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#2A62B2
RGBrgb(42, 98, 178)
HSLhsl(215, 62%, 43%)
HSVhsv(215, 76%, 70%)
CMYKcmyk(76.4%, 44.9%, 0%, 30.2%)
CIE-LABlab(41.91, 10.34, -47.81)
CIE-LCHlch(41.91, 48.91, 282.20°)
OKLaboklab(50.22% -0.0295 -0.137)
OKLCHoklch(50.22% 0.14 257.9)
XYZxyz(13.3555, 12.4404, 43.8082)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A62B2 #B27A2A
analogous
#2AA6B2 #2A62B2 #362AB2
triadic
#2A62B2 #B22A62 #62B22A
tetradic
#2A62B2 #B22AA6 #B27A2A #2AB236
square
#2A62B2 #B22AA6 #B27A2A #2AB236
split-complementary
#2A62B2 #B2362A #A6B22A
monochromatic
#132B4F #1E4780 #2A62B2 #4680D3 #77A2DF

Accessibility & contrast

On white

6.02
#2A62B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2A62B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A62B2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A62B2#FFFFFF#000000##FFFFFF
##2A62B21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#1D5DB0
Tritanopia (blue-blind)
#007581
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a62b2;
/* rgb */ color: rgb(42, 98, 178);
/* oklch */ color: oklch(50.2% 0.140 257.9);
Tailwind
colors: {
  custom: {
    50: '#778ec9',
    500: '#2a62b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a62b2;
$custom-light: #778ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a62b2",
  "rgb": {
    "r": 42,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 215.294,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50222,
    "c": 0.14013,
    "h": 257.9
  },
  "luminance": 0.12442
}

Semantic roles & 50–950 ramp

primary
#2A62B2
secondary
#C7A371
accent
#A243E5
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2A62B2

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

Preview Lab → · Contrast checker → · Palette generator →

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