#2F62AB#2F62AB

#2F62AB is a mid, vivid blue. Relative luminance 0.123; OKLCH L 49.9% C 0.129 H 257.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2F62AB
RGBrgb(47, 98, 171)
HSLhsl(215, 57%, 43%)
HSVhsv(215, 73%, 67%)
CMYKcmyk(72.5%, 42.7%, 0%, 32.9%)
CIE-LABlab(41.66, 8.36, -44.09)
CIE-LCHlch(41.66, 44.87, 280.74°)
OKLaboklab(49.94% -0.0274 -0.126)
OKLCHoklch(49.94% 0.129 257.7)
XYZxyz(12.8880, 12.2786, 40.2110)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62AB #AB782F
analogous
#2FA0AB #2F62AB #3A2FAB
triadic
#2F62AB #AB2F62 #62AB2F
tetradic
#2F62AB #AB2FA0 #AB782F #2FAB3A
square
#2F62AB #AB2FA0 #AB782F #2FAB3A
split-complementary
#2F62AB #AB3A2F #A0AB2F
monochromatic
#152B4B #22467B #2F62AB #4A80CD #7AA2DA

Accessibility & contrast

On white

6.08
#2F62AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2F62AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62AB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62AB#FFFFFF#000000##FFFFFF
##2F62AB1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F68AE
Deuteranopia (green-blind)
#2A5DAA
Tritanopia (blue-blind)
#00737E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f62ab;
/* rgb */ color: rgb(47, 98, 171);
/* oklch */ color: oklch(49.9% 0.129 257.7);
Tailwind
colors: {
  custom: {
    50: '#778ec4',
    500: '#2f62ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f62ab;
$custom-light: #778ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62ab",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 171
  },
  "hsl": {
    "h": 215.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49938,
    "c": 0.12894,
    "h": 257.7
  },
  "luminance": 0.1228
}

Semantic roles & 50–950 ramp

primary
#2F62AB
secondary
#C3A273
accent
#A148E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62AB

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

Preview Lab → · Contrast checker → · Palette generator →

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