#2F5BA0#2F5BA0

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

Color values

HEX#2F5BA0
RGBrgb(47, 91, 160)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 63%)
CMYKcmyk(70.6%, 43.1%, 0%, 37.3%)
CIE-LABlab(38.94, 8.73, -41.90)
CIE-LCHlch(38.94, 42.80, 281.78°)
OKLaboklab(47.62% -0.023 -0.1197)
OKLCHoklch(47.62% 0.122 259.1)
XYZxyz(11.2563, 10.6234, 34.7082)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA0 #A0742F
analogous
#2F93A0 #2F5BA0 #3B2FA0
triadic
#2F5BA0 #A02F5B #5BA02F
tetradic
#2F5BA0 #A02F93 #A0742F #2FA03B
square
#2F5BA0 #A02F93 #A0742F #2FA03B
split-complementary
#2F5BA0 #A03B2F #93A02F
monochromatic
#132541 #214071 #2F5BA0 #4477C8 #739AD6

Accessibility & contrast

On white

6.72
#2F5BA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5BA0
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA0#FFFFFF#000000##FFFFFF
##2F5BA01.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A61A3
Deuteranopia (green-blind)
#27579F
Tritanopia (blue-blind)
#006B75
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5ba0;
/* rgb */ color: rgb(47, 91, 160);
/* oklch */ color: oklch(47.6% 0.122 259.1);
Tailwind
colors: {
  custom: {
    50: '#7588bc',
    500: '#2f5ba0',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba0;
$custom-light: #7588bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba0",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 160
  },
  "hsl": {
    "h": 216.637,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47621,
    "c": 0.12188,
    "h": 259.1
  },
  "luminance": 0.10625
}

Semantic roles & 50–950 ramp

primary
#2F5BA0
secondary
#BE9E6D
accent
#A44ADE
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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