#2F5CBB#2F5CBB

#2F5CBB is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.158 H 262.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5CBB
RGBrgb(47, 92, 187)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 73%)
CMYKcmyk(74.9%, 50.8%, 0%, 26.7%)
CIE-LABlab(40.97, 18.29, -54.58)
CIE-LCHlch(40.97, 57.56, 288.53°)
OKLaboklab(49.74% -0.0195 -0.1569)
OKLCHoklch(49.74% 0.158 262.9)
XYZxyz(13.9659, 11.8449, 48.5543)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CBB #BB8E2F
analogous
#2FA2BB #2F5CBB #482FBB
triadic
#2F5CBB #BB2F5C #5CBB2F
tetradic
#2F5CBB #BB2FA2 #BB8E2F #2FBB48
square
#2F5CBB #BB2FA2 #BB8E2F #2FBB48
split-complementary
#2F5CBB #BB482F #A2BB2F
monochromatic
#162C59 #23448A #2F5CBB #537DD4 #84A2E0

Accessibility & contrast

On white

6.23
#2F5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2F5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CBB
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CBB#FFFFFF#000000##FFFFFF
##2F5CBB1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BE
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5cbb;
/* rgb */ color: rgb(47, 92, 187);
/* oklch */ color: oklch(49.7% 0.158 262.9);
Tailwind
colors: {
  custom: {
    50: '#7b89d0',
    500: '#2f5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cbb;
$custom-light: #7b89d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cbb",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 220.714,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49739,
    "c": 0.15816,
    "h": 262.9
  },
  "luminance": 0.11846
}

Semantic roles & 50–950 ramp

primary
#2F5CBB
secondary
#C9B17C
accent
#B045E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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