#2F5BDA#2F5BDA

#2F5BDA is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.0% C 0.201 H 265.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5BDA
RGBrgb(47, 91, 218)
HSLhsl(225, 70%, 52%)
HSVhsv(225, 78%, 85%)
CMYKcmyk(78.4%, 58.3%, 0%, 14.5%)
CIE-LABlab(42.98, 30.56, -69.20)
CIE-LCHlch(42.98, 75.64, 293.82°)
OKLaboklab(51.98% -0.0165 -0.2)
OKLCHoklch(51.98% 0.201 265.3)
XYZxyz(17.5638, 13.1464, 67.9279)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BDA #DAAE2F
analogous
#2FB1DA #2F5BDA #582FDA
triadic
#2F5BDA #DA2F5B #5BDA2F
tetradic
#2F5BDA #DA2FB1 #DAAE2F #2FDA58
square
#2F5BDA #DA2FB1 #DAAE2F #2FDA58
split-complementary
#2F5BDA #DA582F #B1DA2F
monochromatic
#162F79 #1F43AD #2F5BDA #6384E3 #97ADEC

Accessibility & contrast

On white

5.79
#2F5BDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F5BDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BDA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BDA#FFFFFF#000000##FFFFFF
##2F5BDA1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#007B92
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f5bda;
/* rgb */ color: rgb(47, 91, 218);
/* oklch */ color: oklch(52.0% 0.201 265.3);
Tailwind
colors: {
  custom: {
    50: '#8288e6',
    500: '#2f5bda',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bda;
$custom-light: #8288e6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bda",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 218
  },
  "hsl": {
    "h": 224.561,
    "s": 69.796,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51979,
    "c": 0.20064,
    "h": 265.3
  },
  "luminance": 0.13148
}

Semantic roles & 50–950 ramp

primary
#2F5BDA
secondary
#D8C58D
accent
#BF3BED
background
#F8F8FE
surface
#F0EFFC
border
#CBCAD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #2F5BDA

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

Preview Lab → · Contrast checker → · Palette generator →

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