#2F5BAB#2F5BAB

#2F5BAB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.4% C 0.137 H 261.2°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2F5BAB
RGBrgb(47, 91, 171)
HSLhsl(219, 57%, 43%)
HSVhsv(219, 73%, 67%)
CMYKcmyk(72.5%, 46.8%, 0%, 32.9%)
CIE-LABlab(39.62, 12.89, -47.34)
CIE-LCHlch(39.62, 49.06, 285.23°)
OKLaboklab(48.37% -0.021 -0.1357)
OKLCHoklch(48.37% 0.137 261.2)
XYZxyz(12.2614, 11.0255, 40.0021)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BAB #AB7F2F
analogous
#2F99AB #2F5BAB #412FAB
triadic
#2F5BAB #AB2F5B #5BAB2F
tetradic
#2F5BAB #AB2F99 #AB7F2F #2FAB41
square
#2F5BAB #AB2F99 #AB7F2F #2FAB41
split-complementary
#2F5BAB #AB412F #99AB2F
monochromatic
#15284B #22417B #2F5BAB #4A79CD #7A9CDA

Accessibility & contrast

On white

6.55
#2F5BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2F5BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BAB
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BAB#FFFFFF#000000##FFFFFF
##2F5BAB1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AE
Deuteranopia (green-blind)
#1558A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f5bab;
/* rgb */ color: rgb(47, 91, 171);
/* oklch */ color: oklch(48.4% 0.137 261.2);
Tailwind
colors: {
  custom: {
    50: '#7888c4',
    500: '#2f5bab',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bab;
$custom-light: #7888c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bab",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 218.71,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48369,
    "c": 0.13729,
    "h": 261.2
  },
  "luminance": 0.11027
}

Semantic roles & 50–950 ramp

primary
#2F5BAB
secondary
#C3A673
accent
#AA48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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