#2F5EBF#2F5EBF

#2F5EBF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.161 H 262.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#2F5EBF
RGBrgb(47, 94, 191)
HSLhsl(220, 61%, 47%)
HSVhsv(220, 75%, 75%)
CMYKcmyk(75.4%, 50.8%, 0%, 25.1%)
CIE-LABlab(41.80, 18.50, -55.57)
CIE-LCHlch(41.80, 58.57, 288.41°)
OKLaboklab(50.46% -0.0207 -0.1598)
OKLCHoklch(50.46% 0.161 262.6)
XYZxyz(14.5756, 12.3697, 50.8995)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EBF #BF902F
analogous
#2FA6BF #2F5EBF #482FBF
triadic
#2F5EBF #BF2F5E #5EBF2F
tetradic
#2F5EBF #BF2FA6 #BF902F #2FBF48
square
#2F5EBF #BF2FA6 #BF902F #2FBF48
split-complementary
#2F5EBF #BF482F #A6BF2F
monochromatic
#172E5D #23468E #2F5EBF #567FD5 #87A4E1

Accessibility & contrast

On white

6.04
#2F5EBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2F5EBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EBF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EBF#FFFFFF#000000##FFFFFF
##2F5EBF1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#216AC2
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5ebf;
/* rgb */ color: rgb(47, 94, 191);
/* oklch */ color: oklch(50.5% 0.161 262.6);
Tailwind
colors: {
  custom: {
    50: '#7c8bd3',
    500: '#2f5ebf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ebf;
$custom-light: #7c8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ebf",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 191
  },
  "hsl": {
    "h": 220.417,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50459,
    "c": 0.16117,
    "h": 262.6
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

primary
#2F5EBF
secondary
#CBB27F
accent
#B044E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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