#2F5CB9#2F5CB9

#2F5CB9 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.6% C 0.155 H 262.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB9
RGBrgb(47, 92, 185)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 75%, 73%)
CMYKcmyk(74.6%, 50.3%, 0%, 27.5%)
CIE-LABlab(40.83, 17.53, -53.63)
CIE-LCHlch(40.83, 56.42, 288.10°)
OKLaboklab(49.59% -0.0198 -0.1542)
OKLCHoklch(49.59% 0.155 262.7)
XYZxyz(13.7533, 11.7599, 47.4346)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB9 #B98C2F
analogous
#2FA1B9 #2F5CB9 #472FB9
triadic
#2F5CB9 #B92F5C #5CB92F
tetradic
#2F5CB9 #B92FA1 #B98C2F #2FB947
square
#2F5CB9 #B92FA1 #B98C2F #2FB947
split-complementary
#2F5CB9 #B9472F #A1B92F
monochromatic
#162B57 #234488 #2F5CB9 #527CD3 #83A1DF

Accessibility & contrast

On white

6.26
#2F5CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB9
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB9#FFFFFF#000000##FFFFFF
##2F5CB91.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5cb9;
/* rgb */ color: rgb(47, 92, 185);
/* oklch */ color: oklch(49.6% 0.155 262.7);
Tailwind
colors: {
  custom: {
    50: '#7a89cf',
    500: '#2f5cb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb9;
$custom-light: #7a89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb9",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 185
  },
  "hsl": {
    "h": 220.435,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49591,
    "c": 0.15542,
    "h": 262.7
  },
  "luminance": 0.11761
}

Semantic roles & 50–950 ramp

primary
#2F5CB9
secondary
#C9AF7B
accent
#AF45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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