#2F5AA4#2F5AA4

#2F5AA4 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.7% C 0.129 H 260.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA4
RGBrgb(47, 90, 164)
HSLhsl(218, 55%, 41%)
HSVhsv(218, 71%, 64%)
CMYKcmyk(71.3%, 45.1%, 0%, 35.7%)
CIE-LABlab(38.89, 10.89, -44.36)
CIE-LCHlch(38.89, 45.68, 283.80°)
OKLaboklab(47.66% -0.0213 -0.1269)
OKLCHoklch(47.66% 0.129 260.5)
XYZxyz(11.5269, 10.5958, 36.5525)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA4 #A4792F
analogous
#2F95A4 #2F5AA4 #3F2FA4
triadic
#2F5AA4 #A42F5A #5AA42F
tetradic
#2F5AA4 #A42F95 #A4792F #2FA43F
square
#2F5AA4 #A42F95 #A4792F #2FA43F
split-complementary
#2F5AA4 #A43F2F #95A42F
monochromatic
#142645 #214074 #2F5AA4 #4677CA #769AD8

Accessibility & contrast

On white

6.73
#2F5AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2F5AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA4
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA4#FFFFFF#000000##FFFFFF
##2F5AA41.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3561A7
Deuteranopia (green-blind)
#1F57A2
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aa4;
/* rgb */ color: rgb(47, 90, 164);
/* oklch */ color: oklch(47.7% 0.129 260.5);
Tailwind
colors: {
  custom: {
    50: '#7688bf',
    500: '#2f5aa4',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa4;
$custom-light: #7688bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa4",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 164
  },
  "hsl": {
    "h": 217.949,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.1287,
    "h": 260.5
  },
  "luminance": 0.10597
}

Semantic roles & 50–950 ramp

primary
#2F5AA4
secondary
#C0A26F
accent
#A849DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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