#2F5CA4#2F5CA4

#2F5CA4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.1% C 0.126 H 259.4°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA4
RGBrgb(47, 92, 164)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 64%)
CMYKcmyk(71.3%, 43.9%, 0%, 35.7%)
CIE-LABlab(39.48, 9.59, -43.43)
CIE-LCHlch(39.48, 44.47, 282.46°)
OKLaboklab(48.11% -0.0232 -0.1241)
OKLCHoklch(48.11% 0.126 259.4)
XYZxyz(11.6979, 10.9377, 36.6095)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA4 #A4772F
analogous
#2F97A4 #2F5CA4 #3D2FA4
triadic
#2F5CA4 #A42F5C #5CA42F
tetradic
#2F5CA4 #A42F97 #A4772F #2FA43D
square
#2F5CA4 #A42F97 #A4772F #2FA43D
split-complementary
#2F5CA4 #A43D2F #97A42F
monochromatic
#142745 #214174 #2F5CA4 #4679CA #769BD8

Accessibility & contrast

On white

6.59
#2F5CA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F5CA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA4
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA4#FFFFFF#000000##FFFFFF
##2F5CA41.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A7
Deuteranopia (green-blind)
#2458A3
Tritanopia (blue-blind)
#006D78
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ca4;
/* rgb */ color: rgb(47, 92, 164);
/* oklch */ color: oklch(48.1% 0.126 259.4);
Tailwind
colors: {
  custom: {
    50: '#7689bf',
    500: '#2f5ca4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca4;
$custom-light: #7689bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca4",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 164
  },
  "hsl": {
    "h": 216.923,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48114,
    "c": 0.1263,
    "h": 259.4
  },
  "luminance": 0.10939
}

Semantic roles & 50–950 ramp

primary
#2F5CA4
secondary
#C0A16F
accent
#A549DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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