#2F5BA4#2F5BA4

#2F5BA4 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 47.9% C 0.127 H 260.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#2F5BA4
RGBrgb(47, 91, 164)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 64%)
CMYKcmyk(71.3%, 44.5%, 0%, 35.7%)
CIE-LABlab(39.18, 10.24, -43.89)
CIE-LCHlch(39.18, 45.07, 283.13°)
OKLaboklab(47.89% -0.0222 -0.1255)
OKLCHoklch(47.89% 0.127 260)
XYZxyz(11.6118, 10.7656, 36.5808)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA4 #A4782F
analogous
#2F96A4 #2F5BA4 #3E2FA4
triadic
#2F5BA4 #A42F5B #5BA42F
tetradic
#2F5BA4 #A42F96 #A4782F #2FA43E
square
#2F5BA4 #A42F96 #A4782F #2FA43E
split-complementary
#2F5BA4 #A43E2F #96A42F
monochromatic
#142645 #214174 #2F5BA4 #4678CA #769BD8

Accessibility & contrast

On white

6.66
#2F5BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#2F5BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BA4
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA4#FFFFFF#000000##FFFFFF
##2F5BA41.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3762A7
Deuteranopia (green-blind)
#2257A3
Tritanopia (blue-blind)
#006C77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5ba4;
/* rgb */ color: rgb(47, 91, 164);
/* oklch */ color: oklch(47.9% 0.127 260.0);
Tailwind
colors: {
  custom: {
    50: '#7688bf',
    500: '#2f5ba4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba4;
$custom-light: #7688bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba4",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 164
  },
  "hsl": {
    "h": 217.436,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47888,
    "c": 0.12749,
    "h": 260
  },
  "luminance": 0.10767
}

Semantic roles & 50–950 ramp

primary
#2F5BA4
secondary
#C0A16F
accent
#A649DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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