#2F5FC5#2F5FC5

#2F5FC5 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.1% C 0.168 H 262.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2F5FC5
RGBrgb(47, 95, 197)
HSLhsl(221, 61%, 48%)
HSVhsv(221, 76%, 77%)
CMYKcmyk(76.1%, 51.8%, 0%, 22.7%)
CIE-LABlab(42.49, 20.12, -57.93)
CIE-LCHlch(42.49, 61.33, 289.15°)
OKLaboklab(51.12% -0.0207 -0.1668)
OKLCHoklch(51.12% 0.168 262.9)
XYZxyz(15.3389, 12.8182, 54.4783)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FC5 #C5952F
analogous
#2FAAC5 #2F5FC5 #4A2FC5
triadic
#2F5FC5 #C52F5F #5FC52F
tetradic
#2F5FC5 #C52FAA #C5952F #2FC54A
square
#2F5FC5 #C52FAA #C5952F #2FC54A
split-complementary
#2F5FC5 #C54A2F #AAC52F
monochromatic
#172F62 #234794 #2F5FC5 #5A82D8 #8BA7E3

Accessibility & contrast

On white

5.89
#2F5FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2F5FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FC5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FC5#FFFFFF#000000##FFFFFF
##2F5FC51.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6CC9
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f5fc5;
/* rgb */ color: rgb(47, 95, 197);
/* oklch */ color: oklch(51.1% 0.168 262.9);
Tailwind
colors: {
  custom: {
    50: '#7d8bd7',
    500: '#2f5fc5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fc5;
$custom-light: #7d8bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fc5",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 197
  },
  "hsl": {
    "h": 220.8,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51117,
    "c": 0.16807,
    "h": 262.9
  },
  "luminance": 0.1282
}

Semantic roles & 50–950 ramp

primary
#2F5FC5
secondary
#CDB582
accent
#B143E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2F5FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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