#2F5AB9#2F5AB9

#2F5AB9 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.2% C 0.158 H 263.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB9
RGBrgb(47, 90, 185)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 75%, 73%)
CMYKcmyk(74.6%, 51.4%, 0%, 27.5%)
CIE-LABlab(40.28, 18.84, -54.53)
CIE-LCHlch(40.28, 57.69, 289.06°)
OKLaboklab(49.17% -0.0181 -0.1568)
OKLCHoklch(49.17% 0.158 263.4)
XYZxyz(13.5823, 11.4180, 47.3776)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB9 #B98E2F
analogous
#2F9FB9 #2F5AB9 #492FB9
triadic
#2F5AB9 #B92F5A #5AB92F
tetradic
#2F5AB9 #B92F9F #B98E2F #2FB949
square
#2F5AB9 #B92F9F #B98E2F #2FB949
split-complementary
#2F5AB9 #B9492F #9FB92F
monochromatic
#162B57 #234288 #2F5AB9 #527AD3 #83A0DF

Accessibility & contrast

On white

6.40
#2F5AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#2F5AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AB9
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB9#FFFFFF#000000##FFFFFF
##2F5AB91.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D66BC
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ab9;
/* rgb */ color: rgb(47, 90, 185);
/* oklch */ color: oklch(49.2% 0.158 263.4);
Tailwind
colors: {
  custom: {
    50: '#7b88cf',
    500: '#2f5ab9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab9;
$custom-light: #7b88cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab9",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 221.304,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.49167,
    "c": 0.15789,
    "h": 263.4
  },
  "luminance": 0.11419
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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