#2F4AB8#2F4AB8

#2F4AB8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.176 H 268.0°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB8
RGBrgb(47, 74, 184)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(74.5%, 59.8%, 0%, 27.8%)
CIE-LABlab(35.91, 28.95, -61.03)
CIE-LCHlch(35.91, 67.55, 295.38°)
OKLaboklab(45.86% -0.006 -0.1762)
OKLCHoklch(45.86% 0.176 268)
XYZxyz(12.2698, 8.9613, 46.4212)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB8 #B89D2F
analogous
#2F8EB8 #2F4AB8 #582FB8
triadic
#2F4AB8 #B82F4A #4AB82F
tetradic
#2F4AB8 #B82F8E #B89D2F #2FB858
square
#2F4AB8 #B82F8E #B89D2F #2FB858
split-complementary
#2F4AB8 #B8582F #8EB82F
monochromatic
#162357 #233687 #2F4AB8 #526BD3 #8295DF

Accessibility & contrast

On white

7.52
#2F4AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F4AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB8#FFFFFF#000000##FFFFFF
##2F4AB81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ab8;
/* rgb */ color: rgb(47, 74, 184);
/* oklch */ color: oklch(45.9% 0.176 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7cce',
    500: '#2f4ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab8;
$custom-light: #7b7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab8",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 228.175,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.17631,
    "h": 268
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#2F4AB8
secondary
#C8B97B
accent
#C445E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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