#2F5CB6#2F5CB6

#2F5CB6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.151 H 262.3°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB6
RGBrgb(47, 92, 182)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(74.2%, 49.5%, 0%, 28.6%)
CIE-LABlab(40.63, 16.40, -52.20)
CIE-LCHlch(40.63, 54.71, 287.44°)
OKLaboklab(49.37% -0.0202 -0.15)
OKLCHoklch(49.37% 0.151 262.3)
XYZxyz(13.4399, 11.6346, 45.7843)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB6 #B6892F
analogous
#2FA0B6 #2F5CB6 #462FB6
triadic
#2F5CB6 #B62F5C #5CB62F
tetradic
#2F5CB6 #B62FA0 #B6892F #2FB646
square
#2F5CB6 #B62FA0 #B6892F #2FB646
split-complementary
#2F5CB6 #B6462F #A0B62F
monochromatic
#162B55 #224385 #2F5CB6 #507CD2 #81A0DE

Accessibility & contrast

On white

6.31
#2F5CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2F5CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB6#FFFFFF#000000##FFFFFF
##2F5CB61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2866B9
Deuteranopia (green-blind)
#005AB4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5cb6;
/* rgb */ color: rgb(47, 92, 182);
/* oklch */ color: oklch(49.4% 0.151 262.3);
Tailwind
colors: {
  custom: {
    50: '#7a89cc',
    500: '#2f5cb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb6;
$custom-light: #7a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb6",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 182
  },
  "hsl": {
    "h": 220,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49372,
    "c": 0.15131,
    "h": 262.3
  },
  "luminance": 0.11636
}

Semantic roles & 50–950 ramp

primary
#2F5CB6
secondary
#C7AD79
accent
#AE46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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