#2F5EBC#2F5EBC

#2F5EBC is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.157 H 262.3°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5EBC
RGBrgb(47, 94, 188)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 74%)
CMYKcmyk(75%, 50%, 0%, 26.3%)
CIE-LABlab(41.59, 17.37, -54.15)
CIE-LCHlch(41.59, 56.87, 287.78°)
OKLaboklab(50.24% -0.021 -0.1557)
OKLCHoklch(50.24% 0.157 262.3)
XYZxyz(14.2488, 12.2390, 49.1786)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EBC #BC8D2F
analogous
#2FA4BC #2F5EBC #462FBC
triadic
#2F5EBC #BC2F5E #5EBC2F
tetradic
#2F5EBC #BC2FA4 #BC8D2F #2FBC46
square
#2F5EBC #BC2FA4 #BC8D2F #2FBC46
split-complementary
#2F5EBC #BC462F #A4BC2F
monochromatic
#172D5A #23468B #2F5EBC #547FD4 #85A3E0

Accessibility & contrast

On white

6.09
#2F5EBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F5EBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EBC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EBC#FFFFFF#000000##FFFFFF
##2F5EBC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669BF
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5ebc;
/* rgb */ color: rgb(47, 94, 188);
/* oklch */ color: oklch(50.2% 0.157 262.3);
Tailwind
colors: {
  custom: {
    50: '#7b8bd1',
    500: '#2f5ebc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ebc;
$custom-light: #7b8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ebc",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 188
  },
  "hsl": {
    "h": 220,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50238,
    "c": 0.15708,
    "h": 262.3
  },
  "luminance": 0.12241
}

Semantic roles & 50–950 ramp

primary
#2F5EBC
secondary
#CAB07D
accent
#AE45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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