#2F5DBF#2F5DBF

#2F5DBF is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.162 H 263.0°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#2F5DBF
RGBrgb(47, 93, 191)
HSLhsl(221, 61%, 47%)
HSVhsv(221, 75%, 75%)
CMYKcmyk(75.4%, 51.3%, 0%, 25.1%)
CIE-LABlab(41.52, 19.15, -56.02)
CIE-LCHlch(41.52, 59.20, 288.87°)
OKLaboklab(50.25% -0.0199 -0.1612)
OKLCHoklch(50.25% 0.162 263)
XYZxyz(14.4873, 12.1930, 50.8701)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DBF #BF912F
analogous
#2FA5BF #2F5DBF #492FBF
triadic
#2F5DBF #BF2F5D #5DBF2F
tetradic
#2F5DBF #BF2FA5 #BF912F #2FBF49
square
#2F5DBF #BF2FA5 #BF912F #2FBF49
split-complementary
#2F5DBF #BF492F #A5BF2F
monochromatic
#172D5D #23458E #2F5DBF #567FD5 #87A4E1

Accessibility & contrast

On white

6.11
#2F5DBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#2F5DBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DBF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DBF#FFFFFF#000000##FFFFFF
##2F5DBF1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E69C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5dbf;
/* rgb */ color: rgb(47, 93, 191);
/* oklch */ color: oklch(50.2% 0.162 263.0);
Tailwind
colors: {
  custom: {
    50: '#7c8ad3',
    500: '#2f5dbf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dbf;
$custom-light: #7c8ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dbf",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 191
  },
  "hsl": {
    "h": 220.833,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50248,
    "c": 0.16239,
    "h": 263
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#2F5DBF
secondary
#CBB37F
accent
#B144E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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