#2F4BB4#2F4BB4

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

Color values

HEX#2F4BB4
RGBrgb(47, 75, 180)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 71%)
CMYKcmyk(73.9%, 58.3%, 0%, 29.4%)
CIE-LABlab(35.85, 26.81, -58.76)
CIE-LCHlch(35.85, 64.59, 294.52°)
OKLaboklab(45.71% -0.0068 -0.1695)
OKLCHoklch(45.71% 0.17 267.7)
XYZxyz(11.9237, 8.9305, 44.2665)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BB4 #B4982F
analogous
#2F8EB4 #2F4BB4 #552FB4
triadic
#2F4BB4 #B42F4B #4BB42F
tetradic
#2F4BB4 #B42F8E #B4982F #2FB455
square
#2F4BB4 #B42F8E #B4982F #2FB455
split-complementary
#2F4BB4 #B4552F #8EB42F
monochromatic
#162353 #223783 #2F4BB4 #4F6AD1 #8093DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F4BB4#FFFFFF#000000##FFFFFF
##2F4BB41.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f4bb4;
/* rgb */ color: rgb(47, 75, 180);
/* oklch */ color: oklch(45.7% 0.170 267.7);
Tailwind
colors: {
  custom: {
    50: '#7a7ccb',
    500: '#2f4bb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bb4;
$custom-light: #7a7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bb4",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 180
  },
  "hsl": {
    "h": 227.368,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45711,
    "c": 0.16969,
    "h": 267.7
  },
  "luminance": 0.08932
}

Semantic roles & 50–950 ramp

primary
#2F4BB4
secondary
#C7B678
accent
#C146E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F4BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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