#2F5AA5#2F5AA5

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

Color values

HEX#2F5AA5
RGBrgb(47, 90, 165)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 65%)
CMYKcmyk(71.5%, 45.5%, 0%, 35.3%)
CIE-LABlab(38.95, 11.27, -44.85)
CIE-LCHlch(38.95, 46.25, 284.10°)
OKLaboklab(47.73% -0.0211 -0.1284)
OKLCHoklch(47.73% 0.13 260.7)
XYZxyz(11.6175, 10.6321, 37.0299)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA5 #A57A2F
analogous
#2F95A5 #2F5AA5 #3F2FA5
triadic
#2F5AA5 #A52F5A #5AA52F
tetradic
#2F5AA5 #A52F95 #A57A2F #2FA53F
square
#2F5AA5 #A52F95 #A57A2F #2FA53F
split-complementary
#2F5AA5 #A53F2F #95A52F
monochromatic
#142646 #214075 #2F5AA5 #4777CB #769AD8

Accessibility & contrast

On white

6.72
#2F5AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#2F5AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA5
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA5#FFFFFF#000000##FFFFFF
##2F5AA51.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A8
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aa5;
/* rgb */ color: rgb(47, 90, 165);
/* oklch */ color: oklch(47.7% 0.130 260.7);
Tailwind
colors: {
  custom: {
    50: '#7688c0',
    500: '#2f5aa5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa5;
$custom-light: #7688c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa5",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 165
  },
  "hsl": {
    "h": 218.136,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47732,
    "c": 0.13011,
    "h": 260.7
  },
  "luminance": 0.10633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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