#2F62B9#2F62B9

#2F62B9 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.9% C 0.148 H 260.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#2F62B9
RGBrgb(47, 98, 185)
HSLhsl(218, 59%, 45%)
HSVhsv(218, 75%, 73%)
CMYKcmyk(74.6%, 47%, 0%, 27.5%)
CIE-LABlab(42.52, 13.64, -50.91)
CIE-LCHlch(42.52, 52.70, 285.00°)
OKLaboklab(50.89% -0.0248 -0.146)
OKLCHoklch(50.89% 0.148 260.4)
XYZxyz(14.2938, 12.8409, 47.6148)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B9 #B9862F
analogous
#2FA7B9 #2F62B9 #412FB9
triadic
#2F62B9 #B92F62 #62B92F
tetradic
#2F62B9 #B92FA7 #B9862F #2FB941
square
#2F62B9 #B92FA7 #B9862F #2FB941
split-complementary
#2F62B9 #B9412F #A7B92F
monochromatic
#162E57 #234888 #2F62B9 #5282D3 #83A5DF

Accessibility & contrast

On white

5.88
#2F62B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#2F62B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B9
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B9#FFFFFF#000000##FFFFFF
##2F62B91.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336BBC
Deuteranopia (green-blind)
#0F5EB7
Tritanopia (blue-blind)
#007784
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f62b9;
/* rgb */ color: rgb(47, 98, 185);
/* oklch */ color: oklch(50.9% 0.148 260.4);
Tailwind
colors: {
  custom: {
    50: '#7a8ece',
    500: '#2f62b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b9;
$custom-light: #7a8ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b9",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 185
  },
  "hsl": {
    "h": 217.826,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50887,
    "c": 0.14813,
    "h": 260.4
  },
  "luminance": 0.12842
}

Semantic roles & 50–950 ramp

primary
#2F62B9
secondary
#C9AC7B
accent
#A845E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F62B9

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

Preview Lab → · Contrast checker → · Palette generator →

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