#2F4AB6#2F4AB6

#2F4AB6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.7% C 0.174 H 268.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB6
RGBrgb(47, 74, 182)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(74.2%, 59.3%, 0%, 28.6%)
CIE-LABlab(35.75, 28.21, -60.11)
CIE-LCHlch(35.75, 66.40, 295.14°)
OKLaboklab(45.68% -0.0061 -0.1735)
OKLCHoklch(45.68% 0.174 268)
XYZxyz(12.0616, 8.8780, 45.3248)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB6 #B69B2F
analogous
#2F8EB6 #2F4AB6 #582FB6
triadic
#2F4AB6 #B62F4A #4AB62F
tetradic
#2F4AB6 #B62F8E #B69B2F #2FB658
square
#2F4AB6 #B62F8E #B69B2F #2FB658
split-complementary
#2F4AB6 #B6582F #8EB62F
monochromatic
#162255 #223685 #2F4AB6 #506AD2 #8194DE

Accessibility & contrast

On white

7.57
#2F4AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2F4AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB6
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB6#FFFFFF#000000##FFFFFF
##2F4AB61.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#004EB4
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ab6;
/* rgb */ color: rgb(47, 74, 182);
/* oklch */ color: oklch(45.7% 0.174 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7ccd',
    500: '#2f4ab6',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab6;
$custom-light: #7b7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab6",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 182
  },
  "hsl": {
    "h": 228,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45685,
    "c": 0.17363,
    "h": 268
  },
  "luminance": 0.08879
}

Semantic roles & 50–950 ramp

primary
#2F4AB6
secondary
#C7B879
accent
#C346E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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