#2F62B6#2F62B6

#2F62B6 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.144 H 259.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#2F62B6
RGBrgb(47, 98, 182)
HSLhsl(217, 59%, 45%)
HSVhsv(217, 74%, 71%)
CMYKcmyk(74.2%, 46.2%, 0%, 28.6%)
CIE-LABlab(42.33, 12.51, -49.46)
CIE-LCHlch(42.33, 51.02, 284.19°)
OKLaboklab(50.68% -0.0253 -0.1418)
OKLCHoklch(50.68% 0.144 259.9)
XYZxyz(13.9804, 12.7156, 45.9644)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B6 #B6832F
analogous
#2FA6B6 #2F62B6 #3F2FB6
triadic
#2F62B6 #B62F62 #62B62F
tetradic
#2F62B6 #B62FA6 #B6832F #2FB63F
square
#2F62B6 #B62FA6 #B6832F #2FB63F
split-complementary
#2F62B6 #B63F2F #A6B62F
monochromatic
#162E55 #224885 #2F62B6 #5081D2 #81A4DE

Accessibility & contrast

On white

5.93
#2F62B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F62B6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B6#FFFFFF#000000##FFFFFF
##2F62B61.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366BB9
Deuteranopia (green-blind)
#185EB4
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f62b6;
/* rgb */ color: rgb(47, 98, 182);
/* oklch */ color: oklch(50.7% 0.144 259.9);
Tailwind
colors: {
  custom: {
    50: '#7a8ecc',
    500: '#2f62b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b6;
$custom-light: #7a8ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b6",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 182
  },
  "hsl": {
    "h": 217.333,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50678,
    "c": 0.14403,
    "h": 259.9
  },
  "luminance": 0.12717
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F62B6

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

Preview Lab → · Contrast checker → · Palette generator →

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