#2F5DB1#2F5DB1

#2F5DB1 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.2% C 0.143 H 261.3°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#2F5DB1
RGBrgb(47, 93, 177)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 73%, 69%)
CMYKcmyk(73.4%, 47.5%, 0%, 30.6%)
CIE-LABlab(40.58, 13.85, -49.34)
CIE-LCHlch(40.58, 51.25, 285.68°)
OKLaboklab(49.23% -0.0218 -0.1415)
OKLCHoklch(49.23% 0.143 261.3)
XYZxyz(13.0196, 11.6059, 43.1405)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DB1 #B1832F
analogous
#2F9EB1 #2F5DB1 #422FB1
triadic
#2F5DB1 #B12F5D #5DB12F
tetradic
#2F5DB1 #B12F9E #B1832F #2FB142
square
#2F5DB1 #B12F9E #B1832F #2FB142
split-complementary
#2F5DB1 #B1422F #9EB12F
monochromatic
#152A50 #224481 #2F5DB1 #4D7CD0 #7E9FDD

Accessibility & contrast

On white

6.32
#2F5DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5DB1
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DB1#FFFFFF#000000##FFFFFF
##2F5DB11.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3066B4
Deuteranopia (green-blind)
#0E5AAF
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5db1;
/* rgb */ color: rgb(47, 93, 177);
/* oklch */ color: oklch(49.2% 0.143 261.3);
Tailwind
colors: {
  custom: {
    50: '#798ac9',
    500: '#2f5db1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5db1;
$custom-light: #798ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5db1",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 177
  },
  "hsl": {
    "h": 218.769,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49231,
    "c": 0.14318,
    "h": 261.3
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#2F5DB1
secondary
#C5A976
accent
#AB47E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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