#2F5AB1#2F5AB1

#2F5AB1 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 48.6% C 0.147 H 262.5°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#2F5AB1
RGBrgb(47, 90, 177)
HSLhsl(220, 58%, 44%)
HSVhsv(220, 73%, 69%)
CMYKcmyk(73.4%, 49.2%, 0%, 30.6%)
CIE-LABlab(39.73, 15.81, -50.71)
CIE-LCHlch(39.73, 53.12, 287.32°)
OKLaboklab(48.58% -0.0192 -0.1456)
OKLCHoklch(48.58% 0.147 262.5)
XYZxyz(12.7614, 11.0896, 43.0544)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AB1 #B1862F
analogous
#2F9BB1 #2F5AB1 #452FB1
triadic
#2F5AB1 #B12F5A #5AB12F
tetradic
#2F5AB1 #B12F9B #B1862F #2FB145
square
#2F5AB1 #B12F9B #B1862F #2FB145
split-complementary
#2F5AB1 #B1452F #9BB12F
monochromatic
#152950 #224181 #2F5AB1 #4D79D0 #7E9DDD

Accessibility & contrast

On white

6.53
#2F5AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#2F5AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AB1
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AB1#FFFFFF#000000##FFFFFF
##2F5AB11.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2964B4
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ab1;
/* rgb */ color: rgb(47, 90, 177);
/* oklch */ color: oklch(48.6% 0.147 262.5);
Tailwind
colors: {
  custom: {
    50: '#7988c9',
    500: '#2f5ab1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ab1;
$custom-light: #7988c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ab1",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 220.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48578,
    "c": 0.14687,
    "h": 262.5
  },
  "luminance": 0.11091
}

Semantic roles & 50–950 ramp

primary
#2F5AB1
secondary
#C5AB76
accent
#AE47E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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