#2F5ABB#2F5ABB

#2F5ABB is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.161 H 263.6°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#2F5ABB
RGBrgb(47, 90, 187)
HSLhsl(222, 60%, 46%)
HSVhsv(222, 75%, 73%)
CMYKcmyk(74.9%, 51.9%, 0%, 26.7%)
CIE-LABlab(40.42, 19.59, -55.47)
CIE-LCHlch(40.42, 58.83, 289.45°)
OKLaboklab(49.32% -0.0179 -0.1596)
OKLCHoklch(49.32% 0.161 263.6)
XYZxyz(13.7949, 11.5030, 48.4973)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5ABB #BB902F
analogous
#2FA0BB #2F5ABB #4A2FBB
triadic
#2F5ABB #BB2F5A #5ABB2F
tetradic
#2F5ABB #BB2FA0 #BB902F #2FBB4A
square
#2F5ABB #BB2FA0 #BB902F #2FBB4A
split-complementary
#2F5ABB #BB4A2F #A0BB2F
monochromatic
#162B59 #23428A #2F5ABB #537BD4 #84A0E0

Accessibility & contrast

On white

6.36
#2F5ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#2F5ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5ABB
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5ABB#FFFFFF#000000##FFFFFF
##2F5ABB1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5abb;
/* rgb */ color: rgb(47, 90, 187);
/* oklch */ color: oklch(49.3% 0.161 263.6);
Tailwind
colors: {
  custom: {
    50: '#7b88d0',
    500: '#2f5abb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5abb;
$custom-light: #7b88d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5abb",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 221.571,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49318,
    "c": 0.16062,
    "h": 263.6
  },
  "luminance": 0.11505
}

Semantic roles & 50–950 ramp

primary
#2F5ABB
secondary
#C9B27C
accent
#B245E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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