#2F5BB9#2F5BB9

#2F5BB9 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.157 H 263.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2F5BB9
RGBrgb(47, 91, 185)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 75%, 73%)
CMYKcmyk(74.6%, 50.8%, 0%, 27.5%)
CIE-LABlab(40.55, 18.18, -54.08)
CIE-LCHlch(40.55, 57.05, 288.59°)
OKLaboklab(49.38% -0.019 -0.1555)
OKLCHoklch(49.38% 0.157 263)
XYZxyz(13.6672, 11.5878, 47.4059)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BB9 #B98D2F
analogous
#2FA0B9 #2F5BB9 #482FB9
triadic
#2F5BB9 #B92F5B #5BB92F
tetradic
#2F5BB9 #B92FA0 #B98D2F #2FB948
square
#2F5BB9 #B92FA0 #B98D2F #2FB948
split-complementary
#2F5BB9 #B9482F #A0B92F
monochromatic
#162B57 #234388 #2F5BB9 #527BD3 #83A0DF

Accessibility & contrast

On white

6.33
#2F5BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2F5BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BB9
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BB9#FFFFFF#000000##FFFFFF
##2F5BB91.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2166BC
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#007281
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5bb9;
/* rgb */ color: rgb(47, 91, 185);
/* oklch */ color: oklch(49.4% 0.157 263.0);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#2f5bb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bb9;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bb9",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 185
  },
  "hsl": {
    "h": 220.87,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49379,
    "c": 0.15666,
    "h": 263
  },
  "luminance": 0.11589
}

Semantic roles & 50–950 ramp

primary
#2F5BB9
secondary
#C9B07B
accent
#B045E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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