#2F5AB3#2F5AB3

#2F5AB3 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.7% C 0.150 H 262.7°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB3
RGBrgb(47, 90, 179)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 74%, 70%)
CMYKcmyk(73.7%, 49.7%, 0%, 29.8%)
CIE-LABlab(39.87, 16.57, -51.67)
CIE-LCHlch(39.87, 54.26, 287.78°)
OKLaboklab(48.72% -0.0189 -0.1484)
OKLCHoklch(48.72% 0.15 262.7)
XYZxyz(12.9622, 11.1699, 44.1120)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB3 #B3882F
analogous
#2F9CB3 #2F5AB3 #462FB3
triadic
#2F5AB3 #B32F5A #5AB32F
tetradic
#2F5AB3 #B32F9C #B3882F #2FB346
square
#2F5AB3 #B32F9C #B3882F #2FB346
split-complementary
#2F5AB3 #B3462F #9CB32F
monochromatic
#162952 #224283 #2F5AB3 #4F79D1 #7F9EDD

Accessibility & contrast

On white

6.49
#2F5AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#2F5AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AB3
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB3#FFFFFF#000000##FFFFFF
##2F5AB31.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B6
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ab3;
/* rgb */ color: rgb(47, 90, 179);
/* oklch */ color: oklch(48.7% 0.150 262.7);
Tailwind
colors: {
  custom: {
    50: '#7988ca',
    500: '#2f5ab3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab3;
$custom-light: #7988ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab3",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 220.455,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48723,
    "c": 0.14963,
    "h": 262.7
  },
  "luminance": 0.11171
}

Semantic roles & 50–950 ramp

primary
#2F5AB3
secondary
#C6AD78
accent
#AF46E2
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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