#2F5EC7#2F5EC7

#2F5EC7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.1% C 0.172 H 263.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2F5EC7
RGBrgb(47, 94, 199)
HSLhsl(221, 62%, 48%)
HSVhsv(221, 76%, 78%)
CMYKcmyk(76.4%, 52.8%, 0%, 22%)
CIE-LABlab(42.36, 21.52, -59.31)
CIE-LCHlch(42.36, 63.09, 289.94°)
OKLaboklab(51.06% -0.0198 -0.1708)
OKLCHoklch(51.06% 0.172 263.4)
XYZxyz(15.4801, 12.7315, 55.6633)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EC7 #C7982F
analogous
#2FAAC7 #2F5EC7 #4C2FC7
triadic
#2F5EC7 #C72F5E #5EC72F
tetradic
#2F5EC7 #C72FAA #C7982F #2FC74C
square
#2F5EC7 #C72FAA #C7982F #2FC74C
split-complementary
#2F5EC7 #C74C2F #AAC72F
monochromatic
#182F64 #234795 #2F5EC7 #5B82D8 #8CA8E4

Accessibility & contrast

On white

5.92
#2F5EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2F5EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EC7
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EC7#FFFFFF#000000##FFFFFF
##2F5EC71.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106BCB
Deuteranopia (green-blind)
#005DC5
Tritanopia (blue-blind)
#007889
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f5ec7;
/* rgb */ color: rgb(47, 94, 199);
/* oklch */ color: oklch(51.1% 0.172 263.4);
Tailwind
colors: {
  custom: {
    50: '#7e8bd9',
    500: '#2f5ec7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ec7;
$custom-light: #7e8bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ec7",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 199
  },
  "hsl": {
    "h": 221.447,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51061,
    "c": 0.17197,
    "h": 263.4
  },
  "luminance": 0.12733
}

Semantic roles & 50–950 ramp

primary
#2F5EC7
secondary
#CEB784
accent
#B343E5
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2F5EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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