#2F5EC5#2F5EC5

#2F5EC5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.9% C 0.169 H 263.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2F5EC5
RGBrgb(47, 94, 197)
HSLhsl(221, 61%, 48%)
HSVhsv(221, 76%, 77%)
CMYKcmyk(76.1%, 52.3%, 0%, 22.7%)
CIE-LABlab(42.21, 20.77, -58.38)
CIE-LCHlch(42.21, 61.96, 289.58°)
OKLaboklab(50.91% -0.02 -0.1681)
OKLCHoklch(50.91% 0.169 263.2)
XYZxyz(15.2494, 12.6392, 54.4484)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EC5 #C5962F
analogous
#2FA9C5 #2F5EC5 #4B2FC5
triadic
#2F5EC5 #C52F5E #5EC52F
tetradic
#2F5EC5 #C52FA9 #C5962F #2FC54B
square
#2F5EC5 #C52FA9 #C5962F #2FC54B
split-complementary
#2F5EC5 #C54B2F #A9C52F
monochromatic
#172F62 #234694 #2F5EC5 #5A81D8 #8BA7E3

Accessibility & contrast

On white

5.95
#2F5EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2F5EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EC5
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EC5#FFFFFF#000000##FFFFFF
##2F5EC51.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166BC9
Deuteranopia (green-blind)
#005DC3
Tritanopia (blue-blind)
#007788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f5ec5;
/* rgb */ color: rgb(47, 94, 197);
/* oklch */ color: oklch(50.9% 0.169 263.2);
Tailwind
colors: {
  custom: {
    50: '#7d8bd7',
    500: '#2f5ec5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ec5;
$custom-light: #7d8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ec5",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 197
  },
  "hsl": {
    "h": 221.2,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50909,
    "c": 0.16928,
    "h": 263.2
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#2F5EC5
secondary
#CDB682
accent
#B243E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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