#2F62B4#2F62B4

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

Color values

HEX#2F62B4
RGBrgb(47, 98, 180)
HSLhsl(217, 59%, 45%)
HSVhsv(217, 74%, 71%)
CMYKcmyk(73.9%, 45.6%, 0%, 29.4%)
CIE-LABlab(42.21, 11.75, -48.49)
CIE-LCHlch(42.21, 49.90, 283.62°)
OKLaboklab(50.54% -0.0257 -0.1389)
OKLCHoklch(50.54% 0.141 259.5)
XYZxyz(13.7752, 12.6335, 44.8837)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B4 #B4812F
analogous
#2FA5B4 #2F62B4 #3E2FB4
triadic
#2F62B4 #B42F62 #62B42F
tetradic
#2F62B4 #B42FA5 #B4812F #2FB43E
square
#2F62B4 #B42FA5 #B4812F #2FB43E
split-complementary
#2F62B4 #B43E2F #A5B42F
monochromatic
#162D53 #224883 #2F62B4 #4F81D1 #80A4DE

Accessibility & contrast

On white

5.95
#2F62B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2F62B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B4#FFFFFF#000000##FFFFFF
##2F62B41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386AB7
Deuteranopia (green-blind)
#1C5EB2
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f62b4;
/* rgb */ color: rgb(47, 98, 180);
/* oklch */ color: oklch(50.5% 0.141 259.5);
Tailwind
colors: {
  custom: {
    50: '#798ecb',
    500: '#2f62b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b4;
$custom-light: #798ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b4",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 180
  },
  "hsl": {
    "h": 216.992,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50541,
    "c": 0.14129,
    "h": 259.5
  },
  "luminance": 0.12635
}

Semantic roles & 50–950 ramp

primary
#2F62B4
secondary
#C7A978
accent
#A646E2
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62B4

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

Preview Lab → · Contrast checker → · Palette generator →

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