#2F4AB7#2F4AB7

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

Color values

HEX#2F4AB7
RGBrgb(47, 74, 183)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(74.3%, 59.6%, 0%, 28.2%)
CIE-LABlab(35.83, 28.58, -60.57)
CIE-LCHlch(35.83, 66.97, 295.26°)
OKLaboklab(45.77% -0.006 -0.1749)
OKLCHoklch(45.77% 0.175 268)
XYZxyz(12.1653, 8.9195, 45.8711)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB7 #B79C2F
analogous
#2F8EB7 #2F4AB7 #582FB7
triadic
#2F4AB7 #B72F4A #4AB72F
tetradic
#2F4AB7 #B72F8E #B79C2F #2FB758
square
#2F4AB7 #B72F8E #B79C2F #2FB758
split-complementary
#2F4AB7 #B7582F #8EB72F
monochromatic
#162356 #223686 #2F4AB7 #516BD2 #8294DF

Accessibility & contrast

On white

7.54
#2F4AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F4AB7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB7#FFFFFF#000000##FFFFFF
##2F4AB71.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4ab7;
/* rgb */ color: rgb(47, 74, 183);
/* oklch */ color: oklch(45.8% 0.175 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7ccd',
    500: '#2f4ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab7;
$custom-light: #7b7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab7",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 228.088,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4577,
    "c": 0.17497,
    "h": 268
  },
  "luminance": 0.08921
}

Semantic roles & 50–950 ramp

primary
#2F4AB7
secondary
#C8B87A
accent
#C345E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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