#2F5AA0#2F5AA0

#2F5AA0 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.4% C 0.123 H 259.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA0
RGBrgb(47, 90, 160)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 63%)
CMYKcmyk(70.6%, 43.7%, 0%, 37.3%)
CIE-LABlab(38.64, 9.38, -42.37)
CIE-LCHlch(38.64, 43.40, 282.49°)
OKLaboklab(47.39% -0.0221 -0.1211)
OKLCHoklch(47.39% 0.123 259.7)
XYZxyz(11.1713, 10.4536, 34.6799)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA0 #A0752F
analogous
#2F92A0 #2F5AA0 #3C2FA0
triadic
#2F5AA0 #A02F5A #5AA02F
tetradic
#2F5AA0 #A02F92 #A0752F #2FA03C
square
#2F5AA0 #A02F92 #A0752F #2FA03C
split-complementary
#2F5AA0 #A03C2F #92A02F
monochromatic
#132541 #213F71 #2F5AA0 #4476C8 #7399D6

Accessibility & contrast

On white

6.79
#2F5AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2F5AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA0
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA0#FFFFFF#000000##FFFFFF
##2F5AA01.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3861A3
Deuteranopia (green-blind)
#25569F
Tritanopia (blue-blind)
#006A75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5aa0;
/* rgb */ color: rgb(47, 90, 160);
/* oklch */ color: oklch(47.4% 0.123 259.7);
Tailwind
colors: {
  custom: {
    50: '#7588bc',
    500: '#2f5aa0',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa0;
$custom-light: #7588bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa0",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 160
  },
  "hsl": {
    "h": 217.168,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47393,
    "c": 0.12307,
    "h": 259.7
  },
  "luminance": 0.10455
}

Semantic roles & 50–950 ramp

primary
#2F5AA0
secondary
#BE9F6D
accent
#A64ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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