#2F5BB6#2F5BB6

#2F5BB6 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.2% C 0.153 H 262.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#2F5BB6
RGBrgb(47, 91, 182)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 74%, 71%)
CMYKcmyk(74.2%, 50%, 0%, 28.6%)
CIE-LABlab(40.35, 17.05, -52.65)
CIE-LCHlch(40.35, 55.34, 287.94°)
OKLaboklab(49.16% -0.0193 -0.1513)
OKLCHoklch(49.16% 0.153 262.7)
XYZxyz(13.3539, 11.4624, 45.7556)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BB6 #B68A2F
analogous
#2F9FB6 #2F5BB6 #462FB6
triadic
#2F5BB6 #B62F5B #5BB62F
tetradic
#2F5BB6 #B62F9F #B68A2F #2FB646
square
#2F5BB6 #B62F9F #B68A2F #2FB646
split-complementary
#2F5BB6 #B6462F #9FB62F
monochromatic
#162A55 #224385 #2F5BB6 #507BD2 #819FDE

Accessibility & contrast

On white

6.38
#2F5BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BB6
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BB6#FFFFFF#000000##FFFFFF
##2F5BB61.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2566B9
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5bb6;
/* rgb */ color: rgb(47, 91, 182);
/* oklch */ color: oklch(49.2% 0.153 262.7);
Tailwind
colors: {
  custom: {
    50: '#7a88cc',
    500: '#2f5bb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bb6;
$custom-light: #7a88cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bb6",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 182
  },
  "hsl": {
    "h": 220.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.49158,
    "c": 0.15254,
    "h": 262.7
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#2F5BB6
secondary
#C7AE79
accent
#AF46E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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