#2F5DBB#2F5DBB

#2F5DBB is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.157 H 262.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#2F5DBB
RGBrgb(47, 93, 187)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 73%)
CMYKcmyk(74.9%, 50.3%, 0%, 26.7%)
CIE-LABlab(41.25, 17.64, -54.13)
CIE-LCHlch(41.25, 56.93, 288.05°)
OKLaboklab(49.95% -0.0203 -0.1556)
OKLCHoklch(49.95% 0.157 262.6)
XYZxyz(14.0531, 12.0193, 48.5834)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DBB #BB8D2F
analogous
#2FA3BB #2F5DBB #472FBB
triadic
#2F5DBB #BB2F5D #5DBB2F
tetradic
#2F5DBB #BB2FA3 #BB8D2F #2FBB47
square
#2F5DBB #BB2FA3 #BB8D2F #2FBB47
split-complementary
#2F5DBB #BB472F #A3BB2F
monochromatic
#162C59 #23458A #2F5DBB #537ED4 #84A2E0

Accessibility & contrast

On white

6.17
#2F5DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DBB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DBB#FFFFFF#000000##FFFFFF
##2F5DBB1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5dbb;
/* rgb */ color: rgb(47, 93, 187);
/* oklch */ color: oklch(50.0% 0.157 262.6);
Tailwind
colors: {
  custom: {
    50: '#7b8ad0',
    500: '#2f5dbb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dbb;
$custom-light: #7b8ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dbb",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 187
  },
  "hsl": {
    "h": 220.286,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49952,
    "c": 0.15693,
    "h": 262.6
  },
  "luminance": 0.12021
}

Semantic roles & 50–950 ramp

primary
#2F5DBB
secondary
#C9B07C
accent
#AF45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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