#2F4AB5#2F4AB5

#2F4AB5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.6% C 0.172 H 268.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2F4AB5
RGBrgb(47, 74, 181)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(74%, 59.1%, 0%, 29%)
CIE-LABlab(35.67, 27.84, -59.65)
CIE-LCHlch(35.67, 65.83, 295.02°)
OKLaboklab(45.6% -0.0061 -0.1722)
OKLCHoklch(45.6% 0.172 268)
XYZxyz(11.9587, 8.8368, 44.7825)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4AB5 #B59A2F
analogous
#2F8DB5 #2F4AB5 #572FB5
triadic
#2F4AB5 #B52F4A #4AB52F
tetradic
#2F4AB5 #B52F8D #B59A2F #2FB557
square
#2F4AB5 #B52F8D #B59A2F #2FB557
split-complementary
#2F4AB5 #B5572F #8DB52F
monochromatic
#162254 #223684 #2F4AB5 #506AD1 #8093DE

Accessibility & contrast

On white

7.59
#2F4AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F4AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4AB5
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4AB5#FFFFFF#000000##FFFFFF
##2F4AB51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#004EB3
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f4ab5;
/* rgb */ color: rgb(47, 74, 181);
/* oklch */ color: oklch(45.6% 0.172 268.0);
Tailwind
colors: {
  custom: {
    50: '#7b7ccc',
    500: '#2f4ab5',
    950: '#000000',
  },
}
SCSS
$custom: #2f4ab5;
$custom-light: #7b7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4ab5",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 181
  },
  "hsl": {
    "h": 227.91,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.456,
    "c": 0.17228,
    "h": 268
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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