#2F62BA#2F62BA

#2F62BA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.0% C 0.149 H 260.5°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#2F62BA
RGBrgb(47, 98, 186)
HSLhsl(218, 60%, 46%)
HSVhsv(218, 75%, 73%)
CMYKcmyk(74.7%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.59, 14.02, -51.39)
CIE-LCHlch(42.59, 53.26, 285.26°)
OKLaboklab(50.96% -0.0247 -0.1474)
OKLCHoklch(50.96% 0.15 260.5)
XYZxyz(14.3997, 12.8833, 48.1727)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62BA #BA872F
analogous
#2FA7BA #2F62BA #422FBA
triadic
#2F62BA #BA2F62 #62BA2F
tetradic
#2F62BA #BA2FA7 #BA872F #2FBA42
square
#2F62BA #BA2FA7 #BA872F #2FBA42
split-complementary
#2F62BA #BA422F #A7BA2F
monochromatic
#162F58 #234889 #2F62BA #5382D3 #84A5E0

Accessibility & contrast

On white

5.87
#2F62BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2F62BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62BA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62BA#FFFFFF#000000##FFFFFF
##2F62BA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326BBD
Deuteranopia (green-blind)
#0C5FB8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f62ba;
/* rgb */ color: rgb(47, 98, 186);
/* oklch */ color: oklch(51.0% 0.149 260.5);
Tailwind
colors: {
  custom: {
    50: '#7a8ecf',
    500: '#2f62ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f62ba;
$custom-light: #7a8ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62ba",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 217.986,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50957,
    "c": 0.1495,
    "h": 260.5
  },
  "luminance": 0.12885
}

Semantic roles & 50–950 ramp

primary
#2F62BA
secondary
#C9AD7C
accent
#A945E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F62BA

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

Preview Lab → · Contrast checker → · Palette generator →

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