#2F5FB8#2F5FB8

#2F5FB8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.150 H 261.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB8
RGBrgb(47, 95, 184)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 72%)
CMYKcmyk(74.5%, 48.4%, 0%, 27.8%)
CIE-LABlab(41.61, 15.20, -51.79)
CIE-LCHlch(41.61, 53.98, 286.36°)
OKLaboklab(50.16% -0.0224 -0.1487)
OKLCHoklch(50.16% 0.15 261.4)
XYZxyz(13.9131, 12.2479, 46.9689)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB8 #B8882F
analogous
#2FA3B8 #2F5FB8 #432FB8
triadic
#2F5FB8 #B82F5F #5FB82F
tetradic
#2F5FB8 #B82FA3 #B8882F #2FB843
square
#2F5FB8 #B82FA3 #B8882F #2FB843
split-complementary
#2F5FB8 #B8432F #A3B82F
monochromatic
#162D57 #234687 #2F5FB8 #527FD3 #82A3DF

Accessibility & contrast

On white

6.09
#2F5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#2F5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB8
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB8#FFFFFF#000000##FFFFFF
##2F5FB81.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb8;
/* rgb */ color: rgb(47, 95, 184);
/* oklch */ color: oklch(50.2% 0.150 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bce',
    500: '#2f5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb8;
$custom-light: #7a8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb8",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 218.978,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50163,
    "c": 0.15039,
    "h": 261.4
  },
  "luminance": 0.12249
}

Semantic roles & 50–950 ramp

primary
#2F5FB8
secondary
#C8AD7B
accent
#AB45E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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