#2F5FB9#2F5FB9

#2F5FB9 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.2% C 0.152 H 261.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#2F5FB9
RGBrgb(47, 95, 185)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 75%, 73%)
CMYKcmyk(74.6%, 48.6%, 0%, 27.5%)
CIE-LABlab(41.67, 15.58, -52.27)
CIE-LCHlch(41.67, 54.54, 286.60°)
OKLaboklab(50.24% -0.0223 -0.1501)
OKLCHoklch(50.24% 0.152 261.6)
XYZxyz(14.0183, 12.2900, 47.5229)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FB9 #B9892F
analogous
#2FA4B9 #2F5FB9 #442FB9
triadic
#2F5FB9 #B92F5F #5FB92F
tetradic
#2F5FB9 #B92FA4 #B9892F #2FB944
square
#2F5FB9 #B92FA4 #B9892F #2FB944
split-complementary
#2F5FB9 #B9442F #A4B92F
monochromatic
#162D57 #234688 #2F5FB9 #527FD3 #83A3DF

Accessibility & contrast

On white

6.07
#2F5FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2F5FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FB9
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FB9#FFFFFF#000000##FFFFFF
##2F5FB91.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5fb9;
/* rgb */ color: rgb(47, 95, 185);
/* oklch */ color: oklch(50.2% 0.152 261.6);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2f5fb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fb9;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fb9",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 219.13,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50235,
    "c": 0.15176,
    "h": 261.6
  },
  "luminance": 0.12292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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