#2F5BBA#2F5BBA

#2F5BBA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.5% C 0.158 H 263.2°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5BBA
RGBrgb(47, 91, 186)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 73%)
CMYKcmyk(74.7%, 51.1%, 0%, 27.1%)
CIE-LABlab(40.62, 18.56, -54.55)
CIE-LCHlch(40.62, 57.62, 288.79°)
OKLaboklab(49.45% -0.0188 -0.1569)
OKLCHoklch(49.45% 0.158 263.2)
XYZxyz(13.7731, 11.6302, 47.9638)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BBA #BA8E2F
analogous
#2FA0BA #2F5BBA #482FBA
triadic
#2F5BBA #BA2F5B #5BBA2F
tetradic
#2F5BBA #BA2FA0 #BA8E2F #2FBA48
square
#2F5BBA #BA2FA0 #BA8E2F #2FBA48
split-complementary
#2F5BBA #BA482F #A0BA2F
monochromatic
#162B58 #234389 #2F5BBA #537BD3 #84A1E0

Accessibility & contrast

On white

6.31
#2F5BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2F5BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BBA
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BBA#FFFFFF#000000##FFFFFF
##2F5BBA1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F66BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5bba;
/* rgb */ color: rgb(47, 91, 186);
/* oklch */ color: oklch(49.5% 0.158 263.2);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#2f5bba',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bba;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bba",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 221.007,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49453,
    "c": 0.15803,
    "h": 263.2
  },
  "luminance": 0.11632
}

Semantic roles & 50–950 ramp

primary
#2F5BBA
secondary
#C9B17C
accent
#B145E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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