#2F62B7#2F62B7

#2F62B7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.7% C 0.145 H 260.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2F62B7
RGBrgb(47, 98, 183)
HSLhsl(218, 59%, 45%)
HSVhsv(218, 74%, 72%)
CMYKcmyk(74.3%, 46.4%, 0%, 28.2%)
CIE-LABlab(42.39, 12.88, -49.94)
CIE-LCHlch(42.39, 51.58, 284.47°)
OKLaboklab(50.75% -0.0251 -0.1432)
OKLCHoklch(50.75% 0.145 260)
XYZxyz(14.0841, 12.7570, 46.5106)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F62B7 #B7842F
analogous
#2FA6B7 #2F62B7 #402FB7
triadic
#2F62B7 #B72F62 #62B72F
tetradic
#2F62B7 #B72FA6 #B7842F #2FB740
square
#2F62B7 #B72FA6 #B7842F #2FB740
split-complementary
#2F62B7 #B7402F #A6B72F
monochromatic
#162E56 #224886 #2F62B7 #5181D2 #82A5DF

Accessibility & contrast

On white

5.91
#2F62B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2F62B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F62B7
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F62B7#FFFFFF#000000##FFFFFF
##2F62B71.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356BBA
Deuteranopia (green-blind)
#155EB5
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f62b7;
/* rgb */ color: rgb(47, 98, 183);
/* oklch */ color: oklch(50.7% 0.145 260.0);
Tailwind
colors: {
  custom: {
    50: '#7a8ecd',
    500: '#2f62b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f62b7;
$custom-light: #7a8ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f62b7",
  "rgb": {
    "r": 47,
    "g": 98,
    "b": 183
  },
  "hsl": {
    "h": 217.5,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50747,
    "c": 0.1454,
    "h": 260
  },
  "luminance": 0.12759
}

Semantic roles & 50–950 ramp

primary
#2F62B7
secondary
#C8AB7A
accent
#A845E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F62B7

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

Preview Lab → · Contrast checker → · Palette generator →

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