#2F5BA9#2F5BA9

#2F5BA9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.2% C 0.135 H 260.9°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2F5BA9
RGBrgb(47, 91, 169)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 66%)
CMYKcmyk(72.2%, 46.2%, 0%, 33.7%)
CIE-LABlab(39.50, 12.13, -46.36)
CIE-LCHlch(39.50, 47.92, 284.66°)
OKLaboklab(48.23% -0.0213 -0.1328)
OKLCHoklch(48.23% 0.135 260.9)
XYZxyz(12.0722, 10.9498, 39.0057)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA9 #A97D2F
analogous
#2F98A9 #2F5BA9 #402FA9
triadic
#2F5BA9 #A92F5B #5BA92F
tetradic
#2F5BA9 #A92F98 #A97D2F #2FA940
square
#2F5BA9 #A92F98 #A97D2F #2FA940
split-complementary
#2F5BA9 #A9402F #98A92F
monochromatic
#142749 #224179 #2F5BA9 #4978CC #799CDA

Accessibility & contrast

On white

6.58
#2F5BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F5BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BA9
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA9#FFFFFF#000000##FFFFFF
##2F5BA91.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3363AC
Deuteranopia (green-blind)
#1A58A7
Tritanopia (blue-blind)
#006D7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5ba9;
/* rgb */ color: rgb(47, 91, 169);
/* oklch */ color: oklch(48.2% 0.135 260.9);
Tailwind
colors: {
  custom: {
    50: '#7788c3',
    500: '#2f5ba9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba9;
$custom-light: #7788c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba9",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 169
  },
  "hsl": {
    "h": 218.361,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4823,
    "c": 0.1345,
    "h": 260.9
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#2F5BA9
secondary
#C2A572
accent
#A948E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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