#2F5FCC#2F5FCC

#2F5FCC is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.6% C 0.177 H 263.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5FCC
RGBrgb(47, 95, 204)
HSLhsl(222, 63%, 49%)
HSVhsv(222, 77%, 80%)
CMYKcmyk(77%, 53.4%, 0%, 20%)
CIE-LABlab(42.98, 22.75, -61.17)
CIE-LCHlch(42.98, 65.27, 290.40°)
OKLaboklab(51.65% -0.02 -0.1763)
OKLCHoklch(51.65% 0.177 263.5)
XYZxyz(16.1597, 13.1465, 58.8009)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FCC #CC9C2F
analogous
#2FAECC #2F5FCC #4E2FCC
triadic
#2F5FCC #CC2F5F #5FCC2F
tetradic
#2F5FCC #CC2FAE #CC9C2F #2FCC4E
square
#2F5FCC #CC2FAE #CC9C2F #2FCC4E
split-complementary
#2F5FCC #CC4E2F #AECC2F
monochromatic
#183169 #24489A #2F5FCC #5E84DA #90AAE5

Accessibility & contrast

On white

5.79
#2F5FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2F5FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FCC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FCC#FFFFFF#000000##FFFFFF
##2F5FCC1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DD0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007A8C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2f5fcc;
/* rgb */ color: rgb(47, 95, 204);
/* oklch */ color: oklch(51.6% 0.177 263.5);
Tailwind
colors: {
  custom: {
    50: '#7f8bdc',
    500: '#2f5fcc',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fcc;
$custom-light: #7f8bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fcc",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 221.656,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5165,
    "c": 0.17745,
    "h": 263.5
  },
  "luminance": 0.13148
}

Semantic roles & 50–950 ramp

primary
#2F5FCC
secondary
#D0BA87
accent
#B442E6
background
#F8F8FD
surface
#F0F0FB
border
#CBCBD4
text
#0C0C15
muted
#7D7D83

Preview Lab

Preview with #2F5FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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