#2F5AA6#2F5AA6

#2F5AA6 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.132 H 260.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA6
RGBrgb(47, 90, 166)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 65%)
CMYKcmyk(71.7%, 45.8%, 0%, 34.9%)
CIE-LABlab(39.02, 11.65, -45.35)
CIE-LCHlch(39.02, 46.82, 284.40°)
OKLaboklab(47.8% -0.0209 -0.1298)
OKLCHoklch(47.8% 0.132 260.8)
XYZxyz(11.7089, 10.6686, 37.5112)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA6 #A67B2F
analogous
#2F96A6 #2F5AA6 #3F2FA6
triadic
#2F5AA6 #A62F5A #5AA62F
tetradic
#2F5AA6 #A62F96 #A67B2F #2FA63F
square
#2F5AA6 #A62F96 #A67B2F #2FA63F
split-complementary
#2F5AA6 #A63F2F #96A62F
monochromatic
#142647 #214076 #2F5AA6 #4777CB #779AD8

Accessibility & contrast

On white

6.70
#2F5AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5AA6
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA6#FFFFFF#000000##FFFFFF
##2F5AA61.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3462A9
Deuteranopia (green-blind)
#1C57A4
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aa6;
/* rgb */ color: rgb(47, 90, 166);
/* oklch */ color: oklch(47.8% 0.132 260.8);
Tailwind
colors: {
  custom: {
    50: '#7788c1',
    500: '#2f5aa6',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa6;
$custom-light: #7788c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa6",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 166
  },
  "hsl": {
    "h": 218.319,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.478,
    "c": 0.13151,
    "h": 260.8
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#2F5AA6
secondary
#C1A470
accent
#A949DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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