#2F5AA9#2F5AA9

#2F5AA9 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.0% C 0.136 H 261.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA9
RGBrgb(47, 90, 169)
HSLhsl(219, 56%, 42%)
HSVhsv(219, 72%, 66%)
CMYKcmyk(72.2%, 46.7%, 0%, 33.7%)
CIE-LABlab(39.21, 12.78, -46.82)
CIE-LCHlch(39.21, 48.54, 285.27°)
OKLaboklab(48.01% -0.0204 -0.1342)
OKLCHoklch(48.01% 0.136 261.4)
XYZxyz(11.9873, 10.7800, 38.9774)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA9 #A97E2F
analogous
#2F97A9 #2F5AA9 #412FA9
triadic
#2F5AA9 #A92F5A #5AA92F
tetradic
#2F5AA9 #A92F97 #A97E2F #2FA941
square
#2F5AA9 #A92F97 #A97E2F #2FA941
split-complementary
#2F5AA9 #A9412F #97A92F
monochromatic
#142749 #224179 #2F5AA9 #4977CC #799BDA

Accessibility & contrast

On white

6.65
#2F5AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#2F5AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA9
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA9#FFFFFF#000000##FFFFFF
##2F5AA91.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AC
Deuteranopia (green-blind)
#1657A7
Tritanopia (blue-blind)
#006D79
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5aa9;
/* rgb */ color: rgb(47, 90, 169);
/* oklch */ color: oklch(48.0% 0.136 261.4);
Tailwind
colors: {
  custom: {
    50: '#7788c3',
    500: '#2f5aa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa9;
$custom-light: #7788c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa9",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 169
  },
  "hsl": {
    "h": 218.852,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48008,
    "c": 0.13571,
    "h": 261.4
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#2F5AA9
secondary
#C2A672
accent
#AA48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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