#2F5FBD#2F5FBD

#2F5FBD is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.157 H 262.1°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2F5FBD
RGBrgb(47, 95, 189)
HSLhsl(220, 60%, 46%)
HSVhsv(220, 75%, 74%)
CMYKcmyk(75.1%, 49.7%, 0%, 25.9%)
CIE-LABlab(41.94, 17.09, -54.17)
CIE-LCHlch(41.94, 56.81, 287.51°)
OKLaboklab(50.52% -0.0217 -0.1557)
OKLCHoklch(50.52% 0.157 262.1)
XYZxyz(14.4465, 12.4613, 49.7781)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FBD #BD8D2F
analogous
#2FA6BD #2F5FBD #462FBD
triadic
#2F5FBD #BD2F5F #5FBD2F
tetradic
#2F5FBD #BD2FA6 #BD8D2F #2FBD46
square
#2F5FBD #BD2FA6 #BD8D2F #2FBD46
split-complementary
#2F5FBD #BD462F #A6BD2F
monochromatic
#172E5B #23468C #2F5FBD #5580D5 #86A4E1

Accessibility & contrast

On white

6.01
#2F5FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#2F5FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FBD
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FBD#FFFFFF#000000##FFFFFF
##2F5FBD1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276AC0
Deuteranopia (green-blind)
#005DBB
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5fbd;
/* rgb */ color: rgb(47, 95, 189);
/* oklch */ color: oklch(50.5% 0.157 262.1);
Tailwind
colors: {
  custom: {
    50: '#7b8bd1',
    500: '#2f5fbd',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fbd;
$custom-light: #7b8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fbd",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 219.718,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50524,
    "c": 0.15723,
    "h": 262.1
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

primary
#2F5FBD
secondary
#CAB07E
accent
#AE44E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #2F5FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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