#2F5BA2#2F5BA2

#2F5BA2 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.8% C 0.125 H 259.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#2F5BA2
RGBrgb(47, 91, 162)
HSLhsl(217, 55%, 41%)
HSVhsv(217, 71%, 64%)
CMYKcmyk(71%, 43.8%, 0%, 36.5%)
CIE-LABlab(39.06, 9.49, -42.90)
CIE-LCHlch(39.06, 43.94, 282.47°)
OKLaboklab(47.75% -0.0226 -0.1226)
OKLCHoklch(47.75% 0.125 259.5)
XYZxyz(11.4326, 10.6939, 35.6370)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BA2 #A2762F
analogous
#2F94A2 #2F5BA2 #3C2FA2
triadic
#2F5BA2 #A22F5B #5BA22F
tetradic
#2F5BA2 #A22F94 #A2762F #2FA23C
square
#2F5BA2 #A22F94 #A2762F #2FA23C
split-complementary
#2F5BA2 #A23C2F #94A22F
monochromatic
#132643 #214073 #2F5BA2 #4578C9 #759AD7

Accessibility & contrast

On white

6.69
#2F5BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#2F5BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BA2
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BA2#FFFFFF#000000##FFFFFF
##2F5BA21.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#2557A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2f5ba2;
/* rgb */ color: rgb(47, 91, 162);
/* oklch */ color: oklch(47.8% 0.125 259.5);
Tailwind
colors: {
  custom: {
    50: '#7688be',
    500: '#2f5ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ba2;
$custom-light: #7688be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ba2",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 217.043,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47754,
    "c": 0.12469,
    "h": 259.5
  },
  "luminance": 0.10695
}

Semantic roles & 50–950 ramp

primary
#2F5BA2
secondary
#BFA06E
accent
#A549DE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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