#2F5EC0#2F5EC0

#2F5EC0 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.163 H 262.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#2F5EC0
RGBrgb(47, 94, 192)
HSLhsl(221, 61%, 47%)
HSVhsv(221, 76%, 75%)
CMYKcmyk(75.5%, 51%, 0%, 24.7%)
CIE-LABlab(41.87, 18.88, -56.04)
CIE-LCHlch(41.87, 59.13, 288.62°)
OKLaboklab(50.53% -0.0205 -0.1612)
OKLCHoklch(50.53% 0.163 262.7)
XYZxyz(14.6860, 12.4139, 51.4811)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EC0 #C0912F
analogous
#2FA6C0 #2F5EC0 #492FC0
triadic
#2F5EC0 #C02F5E #5EC02F
tetradic
#2F5EC0 #C02FA6 #C0912F #2FC049
square
#2F5EC0 #C02FA6 #C0912F #2FC049
split-complementary
#2F5EC0 #C0492F #A6C02F
monochromatic
#172E5E #23468F #2F5EC0 #5680D6 #88A5E2

Accessibility & contrast

On white

6.03
#2F5EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#2F5EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EC0
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EC0#FFFFFF#000000##FFFFFF
##2F5EC01.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206AC4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#007686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2f5ec0;
/* rgb */ color: rgb(47, 94, 192);
/* oklch */ color: oklch(50.5% 0.163 262.7);
Tailwind
colors: {
  custom: {
    50: '#7c8bd4',
    500: '#2f5ec0',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ec0;
$custom-light: #7c8bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ec0",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 220.552,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50533,
    "c": 0.16252,
    "h": 262.7
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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