#2F5BB4#2F5BB4

#2F5BB4 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.0% C 0.150 H 262.5°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2F5BB4
RGBrgb(47, 91, 180)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(73.9%, 49.4%, 0%, 29.4%)
CIE-LABlab(40.21, 16.29, -51.70)
CIE-LCHlch(40.21, 54.20, 287.49°)
OKLaboklab(49.01% -0.0196 -0.1485)
OKLCHoklch(49.01% 0.15 262.5)
XYZxyz(13.1487, 11.3804, 44.6748)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BB4 #B4882F
analogous
#2F9EB4 #2F5BB4 #452FB4
triadic
#2F5BB4 #B42F5B #5BB42F
tetradic
#2F5BB4 #B42F9E #B4882F #2FB445
square
#2F5BB4 #B42F9E #B4882F #2FB445
split-complementary
#2F5BB4 #B4452F #9EB42F
monochromatic
#162A53 #224283 #2F5BB4 #4F7AD1 #809FDE

Accessibility & contrast

On white

6.41
#2F5BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2F5BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BB4
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BB4#FFFFFF#000000##FFFFFF
##2F5BB41.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2865B7
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5bb4;
/* rgb */ color: rgb(47, 91, 180);
/* oklch */ color: oklch(49.0% 0.150 262.5);
Tailwind
colors: {
  custom: {
    50: '#7988cb',
    500: '#2f5bb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bb4;
$custom-light: #7988cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bb4",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 220.15,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49011,
    "c": 0.14978,
    "h": 262.5
  },
  "luminance": 0.11382
}

Semantic roles & 50–950 ramp

primary
#2F5BB4
secondary
#C7AD78
accent
#AE46E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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