#2F5CBE#2F5CBE

#2F5CBE is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.0% C 0.162 H 263.2°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#2F5CBE
RGBrgb(47, 92, 190)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 75%)
CMYKcmyk(75.3%, 51.6%, 0%, 25.5%)
CIE-LABlab(41.18, 19.42, -55.99)
CIE-LCHlch(41.18, 59.27, 289.13°)
OKLaboklab(49.96% -0.0192 -0.1611)
OKLCHoklch(49.96% 0.162 263.2)
XYZxyz(14.2904, 11.9747, 50.2634)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CBE #BE912F
analogous
#2FA4BE #2F5CBE #4A2FBE
triadic
#2F5CBE #BE2F5C #5CBE2F
tetradic
#2F5CBE #BE2FA4 #BE912F #2FBE4A
square
#2F5CBE #BE2FA4 #BE912F #2FBE4A
split-complementary
#2F5CBE #BE4A2F #A4BE2F
monochromatic
#172C5C #23448D #2F5CBE #557DD5 #86A3E1

Accessibility & contrast

On white

6.19
#2F5CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CBE
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CBE#FFFFFF#000000##FFFFFF
##2F5CBE1.006.193.406.19
#FFFFFF6.191.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C68C2
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5cbe;
/* rgb */ color: rgb(47, 92, 190);
/* oklch */ color: oklch(50.0% 0.162 263.2);
Tailwind
colors: {
  custom: {
    50: '#7c89d2',
    500: '#2f5cbe',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cbe;
$custom-light: #7c89d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cbe",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 190
  },
  "hsl": {
    "h": 221.119,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.16226,
    "h": 263.2
  },
  "luminance": 0.11976
}

Semantic roles & 50–950 ramp

primary
#2F5CBE
secondary
#CBB37E
accent
#B144E3
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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