#2F5AA3#2F5AA3

#2F5AA3 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.127 H 260.3°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA3
RGBrgb(47, 90, 163)
HSLhsl(218, 55%, 41%)
HSVhsv(218, 71%, 64%)
CMYKcmyk(71.2%, 44.8%, 0%, 36.1%)
CIE-LABlab(38.83, 10.51, -43.86)
CIE-LCHlch(38.83, 45.11, 283.48°)
OKLaboklab(47.6% -0.0215 -0.1255)
OKLCHoklch(47.6% 0.127 260.3)
XYZxyz(11.4369, 10.5598, 36.0787)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA3 #A3782F
analogous
#2F94A3 #2F5AA3 #3E2FA3
triadic
#2F5AA3 #A32F5A #5AA32F
tetradic
#2F5AA3 #A32F94 #A3782F #2FA33E
square
#2F5AA3 #A32F94 #A3782F #2FA33E
split-complementary
#2F5AA3 #A33E2F #94A32F
monochromatic
#142644 #214073 #2F5AA3 #4677CA #759AD7

Accessibility & contrast

On white

6.75
#2F5AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F5AA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA3
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA3#FFFFFF#000000##FFFFFF
##2F5AA31.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A6
Deuteranopia (green-blind)
#2156A2
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5aa3;
/* rgb */ color: rgb(47, 90, 163);
/* oklch */ color: oklch(47.6% 0.127 260.3);
Tailwind
colors: {
  custom: {
    50: '#7688bf',
    500: '#2f5aa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa3;
$custom-light: #7688bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa3",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 163
  },
  "hsl": {
    "h": 217.759,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47595,
    "c": 0.12729,
    "h": 260.3
  },
  "luminance": 0.10561
}

Semantic roles & 50–950 ramp

primary
#2F5AA3
secondary
#BFA16F
accent
#A749DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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