#2F50D4#2F50D4

#2F50D4 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 49.4% C 0.206 H 267.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#2F50D4
RGBrgb(47, 80, 212)
HSLhsl(228, 66%, 51%)
HSVhsv(228, 78%, 83%)
CMYKcmyk(77.8%, 62.3%, 0%, 16.9%)
CIE-LABlab(39.74, 35.37, -71.07)
CIE-LCHlch(39.74, 79.38, 296.46°)
OKLaboklab(49.41% -0.0099 -0.2056)
OKLCHoklch(49.41% 0.206 267.2)
XYZxyz(15.9205, 11.0933, 63.5767)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50D4 #D4B32F
analogous
#2FA2D4 #2F50D4 #602FD4
triadic
#2F50D4 #D42F50 #50D42F
tetradic
#2F50D4 #D42FA2 #D4B32F #2FD460
square
#2F50D4 #D42FA2 #D4B32F #2FD460
split-complementary
#2F50D4 #D4602F #A2D42F
monochromatic
#172971 #223CA4 #2F50D4 #627BDE #94A5E9

Accessibility & contrast

On white

6.52
#2F50D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F50D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F50D4
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50D4#FFFFFF#000000##FFFFFF
##2F50D41.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#00728A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f50d4;
/* rgb */ color: rgb(47, 80, 212);
/* oklch */ color: oklch(49.4% 0.206 267.2);
Tailwind
colors: {
  custom: {
    50: '#8180e2',
    500: '#2f50d4',
    950: '#000000',
  },
}
SCSS
$custom: #2f50d4;
$custom-light: #8180e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50d4",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 212
  },
  "hsl": {
    "h": 228,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49413,
    "c": 0.20581,
    "h": 267.2
  },
  "luminance": 0.11095
}

Semantic roles & 50–950 ramp

primary
#2F50D4
secondary
#D4C58B
accent
#C73FE9
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A16
muted
#7D7C84

Preview Lab

Preview with #2F50D4

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

Preview Lab → · Contrast checker → · Palette generator →

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