#2F5FBA#2F5FBA

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

Color values

HEX#2F5FBA
RGBrgb(47, 95, 186)
HSLhsl(219, 60%, 46%)
HSVhsv(219, 75%, 73%)
CMYKcmyk(74.7%, 48.9%, 0%, 27.1%)
CIE-LABlab(41.74, 15.96, -52.75)
CIE-LCHlch(41.74, 55.11, 286.83°)
OKLaboklab(50.31% -0.0221 -0.1515)
OKLCHoklch(50.31% 0.153 261.7)
XYZxyz(14.1242, 12.3324, 48.0808)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FBA #BA8A2F
analogous
#2FA4BA #2F5FBA #452FBA
triadic
#2F5FBA #BA2F5F #5FBA2F
tetradic
#2F5FBA #BA2FA4 #BA8A2F #2FBA45
square
#2F5FBA #BA2FA4 #BA8A2F #2FBA45
split-complementary
#2F5FBA #BA452F #A4BA2F
monochromatic
#162D58 #234689 #2F5FBA #537FD3 #84A3E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F5FBA#FFFFFF#000000##FFFFFF
##2F5FBA1.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)
#2B69BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007583
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fba;
/* rgb */ color: rgb(47, 95, 186);
/* oklch */ color: oklch(50.3% 0.153 261.7);
Tailwind
colors: {
  custom: {
    50: '#7b8bcf',
    500: '#2f5fba',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fba;
$custom-light: #7b8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fba",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 186
  },
  "hsl": {
    "h": 219.281,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50307,
    "c": 0.15313,
    "h": 261.7
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#2F5FBA
secondary
#C9AE7C
accent
#AC45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F5FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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