#2F5CB8#2F5CB8

#2F5CB8 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.154 H 262.6°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB8
RGBrgb(47, 92, 184)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 72%)
CMYKcmyk(74.5%, 50%, 0%, 27.8%)
CIE-LABlab(40.76, 17.15, -53.15)
CIE-LCHlch(40.76, 55.85, 287.89°)
OKLaboklab(49.52% -0.0199 -0.1528)
OKLCHoklch(49.52% 0.154 262.6)
XYZxyz(13.6481, 11.7178, 46.8806)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB8 #B88B2F
analogous
#2FA0B8 #2F5CB8 #472FB8
triadic
#2F5CB8 #B82F5C #5CB82F
tetradic
#2F5CB8 #B82FA0 #B88B2F #2FB847
square
#2F5CB8 #B82FA0 #B88B2F #2FB847
split-complementary
#2F5CB8 #B8472F #A0B82F
monochromatic
#162B57 #234487 #2F5CB8 #527CD3 #82A1DF

Accessibility & contrast

On white

6.28
#2F5CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#2F5CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB8#FFFFFF#000000##FFFFFF
##2F5CB81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2567BB
Deuteranopia (green-blind)
#005AB6
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5cb8;
/* rgb */ color: rgb(47, 92, 184);
/* oklch */ color: oklch(49.5% 0.154 262.6);
Tailwind
colors: {
  custom: {
    50: '#7a89ce',
    500: '#2f5cb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb8;
$custom-light: #7a89ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb8",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 220.292,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49518,
    "c": 0.15405,
    "h": 262.6
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#2F5CB8
secondary
#C8AF7B
accent
#AF45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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