#2F5AA2#2F5AA2

#2F5AA2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.126 H 260.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2F5AA2
RGBrgb(47, 90, 162)
HSLhsl(218, 55%, 41%)
HSVhsv(218, 71%, 64%)
CMYKcmyk(71%, 44.4%, 0%, 36.5%)
CIE-LABlab(38.77, 10.14, -43.37)
CIE-LCHlch(38.77, 44.54, 283.16°)
OKLaboklab(47.53% -0.0217 -0.124)
OKLCHoklch(47.53% 0.126 260.1)
XYZxyz(11.3477, 10.5241, 35.6087)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AA2 #A2772F
analogous
#2F93A2 #2F5AA2 #3D2FA2
triadic
#2F5AA2 #A22F5A #5AA22F
tetradic
#2F5AA2 #A22F93 #A2772F #2FA23D
square
#2F5AA2 #A22F93 #A2772F #2FA23D
split-complementary
#2F5AA2 #A23D2F #93A22F
monochromatic
#132543 #214073 #2F5AA2 #4576C9 #7599D7

Accessibility & contrast

On white

6.76
#2F5AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#2F5AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AA2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AA2#FFFFFF#000000##FFFFFF
##2F5AA21.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#2256A1
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2f5aa2;
/* rgb */ color: rgb(47, 90, 162);
/* oklch */ color: oklch(47.5% 0.126 260.1);
Tailwind
colors: {
  custom: {
    50: '#7688be',
    500: '#2f5aa2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5aa2;
$custom-light: #7688be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5aa2",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 162
  },
  "hsl": {
    "h": 217.565,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47527,
    "c": 0.12589,
    "h": 260.1
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#2F5AA2
secondary
#BFA16E
accent
#A749DE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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