#2F5CBA#2F5CBA

#2F5CBA is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.157 H 262.8°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2F5CBA
RGBrgb(47, 92, 186)
HSLhsl(221, 60%, 46%)
HSVhsv(221, 75%, 73%)
CMYKcmyk(74.7%, 50.5%, 0%, 27.1%)
CIE-LABlab(40.90, 17.91, -54.10)
CIE-LCHlch(40.90, 56.99, 288.32°)
OKLaboklab(49.67% -0.0196 -0.1556)
OKLCHoklch(49.67% 0.157 262.8)
XYZxyz(13.8592, 11.8023, 47.9925)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CBA #BA8D2F
analogous
#2FA1BA #2F5CBA #482FBA
triadic
#2F5CBA #BA2F5C #5CBA2F
tetradic
#2F5CBA #BA2FA1 #BA8D2F #2FBA48
square
#2F5CBA #BA2FA1 #BA8D2F #2FBA48
split-complementary
#2F5CBA #BA482F #A1BA2F
monochromatic
#162C58 #234489 #2F5CBA #537CD3 #84A1E0

Accessibility & contrast

On white

6.25
#2F5CBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2F5CBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CBA
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CBA#FFFFFF#000000##FFFFFF
##2F5CBA1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BD
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5cba;
/* rgb */ color: rgb(47, 92, 186);
/* oklch */ color: oklch(49.7% 0.157 262.8);
Tailwind
colors: {
  custom: {
    50: '#7b89cf',
    500: '#2f5cba',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cba;
$custom-light: #7b89cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cba",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 186
  },
  "hsl": {
    "h": 220.576,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.49665,
    "c": 0.1568,
    "h": 262.8
  },
  "luminance": 0.11804
}

Semantic roles & 50–950 ramp

primary
#2F5CBA
secondary
#C9B07C
accent
#B045E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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