#2F5BA5#2F5BA5

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

Color values

HEX#2F5BA5
RGBrgb(47, 91, 165)
HSLhsl(218, 56%, 42%)
HSVhsv(218, 72%, 65%)
CMYKcmyk(71.5%, 44.8%, 0%, 35.3%)
CIE-LABlab(39.24, 10.62, -44.39)
CIE-LCHlch(39.24, 45.64, 283.45°)
OKLaboklab(47.96% -0.022 -0.127)
OKLCHoklch(47.96% 0.129 260.2)
XYZxyz(11.7025, 10.8019, 37.0582)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA5 #A5792F
analogous
#2F96A5 #2F5BA5 #3E2FA5
triadic
#2F5BA5 #A52F5B #5BA52F
tetradic
#2F5BA5 #A52F96 #A5792F #2FA53E
square
#2F5BA5 #A52F96 #A5792F #2FA53E
split-complementary
#2F5BA5 #A53E2F #96A52F
monochromatic
#142646 #214175 #2F5BA5 #4778CB #769BD8

Accessibility & contrast

On white

6.64
#2F5BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5BA5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA5#FFFFFF#000000##FFFFFF
##2F5BA51.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3662A8
Deuteranopia (green-blind)
#2057A3
Tritanopia (blue-blind)
#006C78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5ba5;
/* rgb */ color: rgb(47, 91, 165);
/* oklch */ color: oklch(48.0% 0.129 260.2);
Tailwind
colors: {
  custom: {
    50: '#7688c0',
    500: '#2f5ba5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba5;
$custom-light: #7688c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba5",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 165
  },
  "hsl": {
    "h": 217.627,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47956,
    "c": 0.1289,
    "h": 260.2
  },
  "luminance": 0.10803
}

Semantic roles & 50–950 ramp

primary
#2F5BA5
secondary
#C0A270
accent
#A749DF
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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