#2F5CA6#2F5CA6

#2F5CA6 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.129 H 259.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA6
RGBrgb(47, 92, 166)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 65%)
CMYKcmyk(71.7%, 44.6%, 0%, 34.9%)
CIE-LABlab(39.60, 10.35, -44.42)
CIE-LCHlch(39.60, 45.61, 283.11°)
OKLaboklab(48.25% -0.0228 -0.1271)
OKLCHoklch(48.25% 0.129 259.8)
XYZxyz(11.8799, 11.0105, 37.5682)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA6 #A6792F
analogous
#2F98A6 #2F5CA6 #3E2FA6
triadic
#2F5CA6 #A62F5C #5CA62F
tetradic
#2F5CA6 #A62F98 #A6792F #2FA63E
square
#2F5CA6 #A62F98 #A6792F #2FA63E
split-complementary
#2F5CA6 #A63E2F #98A62F
monochromatic
#142747 #214276 #2F5CA6 #4779CB #779CD8

Accessibility & contrast

On white

6.56
#2F5CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2F5CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA6#FFFFFF#000000##FFFFFF
##2F5CA61.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763A9
Deuteranopia (green-blind)
#2258A4
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ca6;
/* rgb */ color: rgb(47, 92, 166);
/* oklch */ color: oklch(48.2% 0.129 259.8);
Tailwind
colors: {
  custom: {
    50: '#7689c1',
    500: '#2f5ca6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca6;
$custom-light: #7689c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca6",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 217.311,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.48249,
    "c": 0.12909,
    "h": 259.8
  },
  "luminance": 0.11012
}

Semantic roles & 50–950 ramp

primary
#2F5CA6
secondary
#C1A270
accent
#A649DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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