#2F62B3#2F62B3

#2F62B3 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.5% C 0.140 H 259.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2F62B3
RGBrgb(47, 98, 179)
HSLhsl(217, 58%, 44%)
HSVhsv(217, 74%, 70%)
CMYKcmyk(73.7%, 45.3%, 0%, 29.8%)
CIE-LABlab(42.14, 11.37, -48.01)
CIE-LCHlch(42.14, 49.34, 283.33°)
OKLaboklab(50.47% -0.0259 -0.1375)
OKLCHoklch(50.47% 0.14 259.3)
XYZxyz(13.6737, 12.5929, 44.3491)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B3 #B3802F
analogous
#2FA4B3 #2F62B3 #3E2FB3
triadic
#2F62B3 #B32F62 #62B32F
tetradic
#2F62B3 #B32FA4 #B3802F #2FB33E
square
#2F62B3 #B32FA4 #B3802F #2FB33E
split-complementary
#2F62B3 #B33E2F #A4B32F
monochromatic
#162D52 #224783 #2F62B3 #4F81D1 #7FA3DD

Accessibility & contrast

On white

5.97
#2F62B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2F62B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B3
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B3#FFFFFF#000000##FFFFFF
##2F62B31.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB6
Deuteranopia (green-blind)
#1E5EB1
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f62b3;
/* rgb */ color: rgb(47, 98, 179);
/* oklch */ color: oklch(50.5% 0.140 259.3);
Tailwind
colors: {
  custom: {
    50: '#798eca',
    500: '#2f62b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b3;
$custom-light: #798eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b3",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 179
  },
  "hsl": {
    "h": 216.818,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50473,
    "c": 0.13992,
    "h": 259.3
  },
  "luminance": 0.12594
}

Semantic roles & 50–950 ramp

primary
#2F62B3
secondary
#C6A878
accent
#A646E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62B3

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

Preview Lab → · Contrast checker → · Palette generator →

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