#2F5CB5#2F5CB5

#2F5CB5 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.150 H 262.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#2F5CB5
RGBrgb(47, 92, 181)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(74%, 49.2%, 0%, 29%)
CIE-LABlab(40.56, 16.02, -51.72)
CIE-LCHlch(40.56, 54.14, 287.21°)
OKLaboklab(49.3% -0.0203 -0.1485)
OKLCHoklch(49.3% 0.15 262.2)
XYZxyz(13.3369, 11.5934, 45.2420)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CB5 #B5882F
analogous
#2F9FB5 #2F5CB5 #452FB5
triadic
#2F5CB5 #B52F5C #5CB52F
tetradic
#2F5CB5 #B52F9F #B5882F #2FB545
square
#2F5CB5 #B52F9F #B5882F #2FB545
split-complementary
#2F5CB5 #B5452F #9FB52F
monochromatic
#162B54 #224384 #2F5CB5 #507BD1 #80A0DE

Accessibility & contrast

On white

6.33
#2F5CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#2F5CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CB5
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CB5#FFFFFF#000000##FFFFFF
##2F5CB51.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5cb5;
/* rgb */ color: rgb(47, 92, 181);
/* oklch */ color: oklch(49.3% 0.150 262.2);
Tailwind
colors: {
  custom: {
    50: '#7a89cc',
    500: '#2f5cb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cb5;
$custom-light: #7a89cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cb5",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 181
  },
  "hsl": {
    "h": 219.851,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49299,
    "c": 0.14993,
    "h": 262.2
  },
  "luminance": 0.11595
}

Semantic roles & 50–950 ramp

primary
#2F5CB5
secondary
#C7AD79
accent
#AE46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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