#2F5CA7#2F5CA7

#2F5CA7 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.130 H 260.0°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#2F5CA7
RGBrgb(47, 92, 167)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 65%)
CMYKcmyk(71.9%, 44.9%, 0%, 34.5%)
CIE-LABlab(39.66, 10.72, -44.91)
CIE-LCHlch(39.66, 46.17, 283.43°)
OKLaboklab(48.32% -0.0226 -0.1285)
OKLCHoklch(48.32% 0.13 260)
XYZxyz(11.9720, 11.0474, 38.0531)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CA7 #A77A2F
analogous
#2F98A7 #2F5CA7 #3E2FA7
triadic
#2F5CA7 #A72F5C #5CA72F
tetradic
#2F5CA7 #A72F98 #A77A2F #2FA73E
square
#2F5CA7 #A72F98 #A77A2F #2FA73E
split-complementary
#2F5CA7 #A73E2F #98A72F
monochromatic
#142747 #224277 #2F5CA7 #4879CB #789CD9

Accessibility & contrast

On white

6.54
#2F5CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2F5CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CA7
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CA7#FFFFFF#000000##FFFFFF
##2F5CA71.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763AA
Deuteranopia (green-blind)
#2058A5
Tritanopia (blue-blind)
#006E79
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ca7;
/* rgb */ color: rgb(47, 92, 167);
/* oklch */ color: oklch(48.3% 0.130 260.0);
Tailwind
colors: {
  custom: {
    50: '#7789c1',
    500: '#2f5ca7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ca7;
$custom-light: #7789c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ca7",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 167
  },
  "hsl": {
    "h": 217.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.48316,
    "c": 0.13049,
    "h": 260
  },
  "luminance": 0.11049
}

Semantic roles & 50–950 ramp

primary
#2F5CA7
secondary
#C1A371
accent
#A748DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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