#2F62B5#2F62B5

#2F62B5 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.6% C 0.143 H 259.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2F62B5
RGBrgb(47, 98, 181)
HSLhsl(217, 59%, 45%)
HSVhsv(217, 74%, 71%)
CMYKcmyk(74%, 45.9%, 0%, 29%)
CIE-LABlab(42.27, 12.13, -48.98)
CIE-LCHlch(42.27, 50.46, 283.91°)
OKLaboklab(50.61% -0.0255 -0.1404)
OKLCHoklch(50.61% 0.143 259.7)
XYZxyz(13.8774, 12.6744, 45.4221)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B5 #B5822F
analogous
#2FA5B5 #2F62B5 #3F2FB5
triadic
#2F62B5 #B52F62 #62B52F
tetradic
#2F62B5 #B52FA5 #B5822F #2FB53F
square
#2F62B5 #B52FA5 #B5822F #2FB53F
split-complementary
#2F62B5 #B53F2F #A5B52F
monochromatic
#162D54 #224884 #2F62B5 #5081D1 #80A4DE

Accessibility & contrast

On white

5.94
#2F62B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F62B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B5
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B5#FFFFFF#000000##FFFFFF
##2F62B51.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB8
Deuteranopia (green-blind)
#1A5EB3
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f62b5;
/* rgb */ color: rgb(47, 98, 181);
/* oklch */ color: oklch(50.6% 0.143 259.7);
Tailwind
colors: {
  custom: {
    50: '#798ecc',
    500: '#2f62b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b5;
$custom-light: #798ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b5",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 181
  },
  "hsl": {
    "h": 217.164,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50609,
    "c": 0.14267,
    "h": 259.7
  },
  "luminance": 0.12676
}

Semantic roles & 50–950 ramp

primary
#2F62B5
secondary
#C7A979
accent
#A746E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62B5

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

Preview Lab → · Contrast checker → · Palette generator →

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