#2F5BB8#2F5BB8

#2F5BB8 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.155 H 262.9°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#2F5BB8
RGBrgb(47, 91, 184)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(74.5%, 50.5%, 0%, 27.8%)
CIE-LABlab(40.48, 17.81, -53.60)
CIE-LCHlch(40.48, 56.48, 288.38°)
OKLaboklab(49.31% -0.0191 -0.1541)
OKLCHoklch(49.31% 0.155 262.9)
XYZxyz(13.5620, 11.5457, 46.8519)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BB8 #B88C2F
analogous
#2F9FB8 #2F5BB8 #482FB8
triadic
#2F5BB8 #B82F5B #5BB82F
tetradic
#2F5BB8 #B82F9F #B88C2F #2FB848
square
#2F5BB8 #B82F9F #B88C2F #2FB848
split-complementary
#2F5BB8 #B8482F #9FB82F
monochromatic
#162B57 #234387 #2F5BB8 #527BD3 #82A0DF

Accessibility & contrast

On white

6.35
#2F5BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#2F5BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BB8
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BB8#FFFFFF#000000##FFFFFF
##2F5BB81.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2266BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5bb8;
/* rgb */ color: rgb(47, 91, 184);
/* oklch */ color: oklch(49.3% 0.155 262.9);
Tailwind
colors: {
  custom: {
    50: '#7a88ce',
    500: '#2f5bb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bb8;
$custom-light: #7a88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bb8",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 184
  },
  "hsl": {
    "h": 220.73,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49305,
    "c": 0.15529,
    "h": 262.9
  },
  "luminance": 0.11547
}

Semantic roles & 50–950 ramp

primary
#2F5BB8
secondary
#C8AF7B
accent
#B045E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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