#2F5AB8#2F5AB8

#2F5AB8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.157 H 263.3°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB8
RGBrgb(47, 90, 184)
HSLhsl(221, 59%, 45%)
HSVhsv(221, 74%, 72%)
CMYKcmyk(74.5%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.21, 18.46, -54.05)
CIE-LCHlch(40.21, 57.12, 288.86°)
OKLaboklab(49.09% -0.0183 -0.1554)
OKLCHoklch(49.09% 0.157 263.3)
XYZxyz(13.4771, 11.3759, 46.8236)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB8 #B88D2F
analogous
#2F9EB8 #2F5AB8 #492FB8
triadic
#2F5AB8 #B82F5A #5AB82F
tetradic
#2F5AB8 #B82F9E #B88D2F #2FB849
square
#2F5AB8 #B82F9E #B88D2F #2FB849
split-complementary
#2F5AB8 #B8492F #9EB82F
monochromatic
#162A57 #234287 #2F5AB8 #527AD3 #829FDF

Accessibility & contrast

On white

6.41
#2F5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5AB8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB8#FFFFFF#000000##FFFFFF
##2F5AB81.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ab8;
/* rgb */ color: rgb(47, 90, 184);
/* oklch */ color: oklch(49.1% 0.157 263.3);
Tailwind
colors: {
  custom: {
    50: '#7a88ce',
    500: '#2f5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab8;
$custom-light: #7a88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab8",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 221.168,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49093,
    "c": 0.15652,
    "h": 263.3
  },
  "luminance": 0.11377
}

Semantic roles & 50–950 ramp

primary
#2F5AB8
secondary
#C8B07B
accent
#B145E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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