#2F5EBE#2F5EBE

#2F5EBE is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.160 H 262.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#2F5EBE
RGBrgb(47, 94, 190)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 75%)
CMYKcmyk(75.3%, 50.5%, 0%, 25.5%)
CIE-LABlab(41.73, 18.12, -55.10)
CIE-LCHlch(41.73, 58.00, 288.21°)
OKLaboklab(50.39% -0.0208 -0.1584)
OKLCHoklch(50.39% 0.16 262.5)
XYZxyz(14.4659, 12.3258, 50.3219)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EBE #BE8F2F
analogous
#2FA6BE #2F5EBE #482FBE
triadic
#2F5EBE #BE2F5E #5EBE2F
tetradic
#2F5EBE #BE2FA6 #BE8F2F #2FBE48
square
#2F5EBE #BE2FA6 #BE8F2F #2FBE48
split-complementary
#2F5EBE #BE482F #A6BE2F
monochromatic
#172D5C #23468D #2F5EBE #557FD5 #86A4E1

Accessibility & contrast

On white

6.06
#2F5EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5EBE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EBE#FFFFFF#000000##FFFFFF
##2F5EBE1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2369C1
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5ebe;
/* rgb */ color: rgb(47, 94, 190);
/* oklch */ color: oklch(50.4% 0.160 262.5);
Tailwind
colors: {
  custom: {
    50: '#7c8bd2',
    500: '#2f5ebe',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ebe;
$custom-light: #7c8bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ebe",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 190
  },
  "hsl": {
    "h": 220.28,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50385,
    "c": 0.15981,
    "h": 262.5
  },
  "luminance": 0.12327
}

Semantic roles & 50–950 ramp

primary
#2F5EBE
secondary
#CBB27E
accent
#AF44E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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