#2F5FC2#2F5FC2

#2F5FC2 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.164 H 262.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2F5FC2
RGBrgb(47, 95, 194)
HSLhsl(220, 61%, 47%)
HSVhsv(220, 76%, 76%)
CMYKcmyk(75.8%, 51%, 0%, 23.9%)
CIE-LABlab(42.28, 18.98, -56.53)
CIE-LCHlch(42.28, 59.63, 288.56°)
OKLaboklab(50.89% -0.0211 -0.1626)
OKLCHoklch(50.89% 0.164 262.6)
XYZxyz(14.9986, 12.6821, 52.6859)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FC2 #C2922F
analogous
#2FA9C2 #2F5FC2 #482FC2
triadic
#2F5FC2 #C22F5F #5FC22F
tetradic
#2F5FC2 #C22FA9 #C2922F #2FC248
square
#2F5FC2 #C22FA9 #C2922F #2FC248
split-complementary
#2F5FC2 #C2482F #A9C22F
monochromatic
#172F5F #234791 #2F5FC2 #5881D6 #89A6E2

Accessibility & contrast

On white

5.94
#2F5FC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#2F5FC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FC2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FC2#FFFFFF#000000##FFFFFF
##2F5FC21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206BC6
Deuteranopia (green-blind)
#005DC0
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f5fc2;
/* rgb */ color: rgb(47, 95, 194);
/* oklch */ color: oklch(50.9% 0.164 262.6);
Tailwind
colors: {
  custom: {
    50: '#7c8bd5',
    500: '#2f5fc2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fc2;
$custom-light: #7c8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fc2",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 194
  },
  "hsl": {
    "h": 220.408,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50892,
    "c": 0.16401,
    "h": 262.6
  },
  "luminance": 0.12684
}

Semantic roles & 50–950 ramp

primary
#2F5FC2
secondary
#CCB481
accent
#B044E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2F5FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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