#2F62B2#2F62B2

#2F62B2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.4% C 0.139 H 259.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#2F62B2
RGBrgb(47, 98, 178)
HSLhsl(217, 58%, 44%)
HSVhsv(217, 74%, 70%)
CMYKcmyk(73.6%, 44.9%, 0%, 30.2%)
CIE-LABlab(42.08, 11.00, -47.52)
CIE-LCHlch(42.08, 48.78, 283.03°)
OKLaboklab(50.41% -0.026 -0.1361)
OKLCHoklch(50.41% 0.139 259.2)
XYZxyz(13.5729, 12.5526, 43.8184)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B2 #B27F2F
analogous
#2FA4B2 #2F62B2 #3E2FB2
triadic
#2F62B2 #B22F62 #62B22F
tetradic
#2F62B2 #B22FA4 #B27F2F #2FB23E
square
#2F62B2 #B22FA4 #B27F2F #2FB23E
split-complementary
#2F62B2 #B23E2F #A4B22F
monochromatic
#152D51 #224782 #2F62B2 #4E81D0 #7EA3DD

Accessibility & contrast

On white

5.98
#2F62B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#2F62B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B2
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B2#FFFFFF#000000##FFFFFF
##2F62B21.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#1F5EB0
Tritanopia (blue-blind)
#007581
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f62b2;
/* rgb */ color: rgb(47, 98, 178);
/* oklch */ color: oklch(50.4% 0.139 259.2);
Tailwind
colors: {
  custom: {
    50: '#798ec9',
    500: '#2f62b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b2;
$custom-light: #798ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b2",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 216.641,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.13855,
    "h": 259.2
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#2F62B2
secondary
#C6A777
accent
#A546E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62B2

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

Preview Lab → · Contrast checker → · Palette generator →

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