#2F5AB2#2F5AB2

#2F5AB2 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.7% C 0.148 H 262.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB2
RGBrgb(47, 90, 178)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 74%, 70%)
CMYKcmyk(73.6%, 49.4%, 0%, 30.2%)
CIE-LABlab(39.80, 16.19, -51.19)
CIE-LCHlch(39.80, 53.69, 287.55°)
OKLaboklab(48.65% -0.019 -0.147)
OKLCHoklch(48.65% 0.148 262.6)
XYZxyz(12.8615, 11.1296, 43.5813)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB2 #B2872F
analogous
#2F9CB2 #2F5AB2 #452FB2
triadic
#2F5AB2 #B22F5A #5AB22F
tetradic
#2F5AB2 #B22F9C #B2872F #2FB245
square
#2F5AB2 #B22F9C #B2872F #2FB245
split-complementary
#2F5AB2 #B2452F #9CB22F
monochromatic
#152951 #224282 #2F5AB2 #4E79D0 #7E9DDD

Accessibility & contrast

On white

6.51
#2F5AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5AB2
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB2#FFFFFF#000000##FFFFFF
##2F5AB21.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ab2;
/* rgb */ color: rgb(47, 90, 178);
/* oklch */ color: oklch(48.7% 0.148 262.6);
Tailwind
colors: {
  custom: {
    50: '#7988ca',
    500: '#2f5ab2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab2;
$custom-light: #7988ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab2",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 220.305,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48651,
    "c": 0.14825,
    "h": 262.6
  },
  "luminance": 0.11131
}

Semantic roles & 50–950 ramp

primary
#2F5AB2
secondary
#C6AC77
accent
#AF46E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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