#2F5AA7#2F5AA7

#2F5AA7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.133 H 261.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA7
RGBrgb(47, 90, 167)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 72%, 65%)
CMYKcmyk(71.9%, 46.1%, 0%, 34.5%)
CIE-LABlab(39.08, 12.03, -45.84)
CIE-LCHlch(39.08, 47.39, 284.70°)
OKLaboklab(47.87% -0.0207 -0.1313)
OKLCHoklch(47.87% 0.133 261)
XYZxyz(11.8010, 10.7054, 37.9961)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA7 #A77C2F
analogous
#2F96A7 #2F5AA7 #402FA7
triadic
#2F5AA7 #A72F5A #5AA72F
tetradic
#2F5AA7 #A72F96 #A77C2F #2FA740
square
#2F5AA7 #A72F96 #A77C2F #2FA740
split-complementary
#2F5AA7 #A7402F #96A72F
monochromatic
#142747 #224077 #2F5AA7 #4877CB #789AD9

Accessibility & contrast

On white

6.68
#2F5AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F5AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA7
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA7#FFFFFF#000000##FFFFFF
##2F5AA71.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#1A57A5
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aa7;
/* rgb */ color: rgb(47, 90, 167);
/* oklch */ color: oklch(47.9% 0.133 261.0);
Tailwind
colors: {
  custom: {
    50: '#7788c2',
    500: '#2f5aa7',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa7;
$custom-light: #7788c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa7",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 167
  },
  "hsl": {
    "h": 218.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47869,
    "c": 0.13292,
    "h": 261
  },
  "luminance": 0.10707
}

Semantic roles & 50–950 ramp

primary
#2F5AA7
secondary
#C1A471
accent
#A948DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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