#2F4BB7#2F4BB7

#2F4BB7 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.0% C 0.174 H 267.8°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2F4BB7
RGBrgb(47, 75, 183)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 72%)
CMYKcmyk(74.3%, 59%, 0%, 28.2%)
CIE-LABlab(36.09, 27.92, -60.15)
CIE-LCHlch(36.09, 66.31, 294.90°)
OKLaboklab(45.96% -0.0068 -0.1736)
OKLCHoklch(45.96% 0.174 267.8)
XYZxyz(12.2326, 9.0541, 45.8935)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4BB7 #B79B2F
analogous
#2F8FB7 #2F4BB7 #572FB7
triadic
#2F4BB7 #B72F4B #4BB72F
tetradic
#2F4BB7 #B72F8F #B79B2F #2FB757
square
#2F4BB7 #B72F8F #B79B2F #2FB757
split-complementary
#2F4BB7 #B7572F #8FB72F
monochromatic
#162356 #223786 #2F4BB7 #516CD2 #8295DF

Accessibility & contrast

On white

7.47
#2F4BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F4BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4BB7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4BB7#FFFFFF#000000##FFFFFF
##2F4BB71.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4bb7;
/* rgb */ color: rgb(47, 75, 183);
/* oklch */ color: oklch(46.0% 0.174 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#2f4bb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4bb7;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4bb7",
  "rgb": {
    "r": 47,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 227.647,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.17374,
    "h": 267.8
  },
  "luminance": 0.09055
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F4BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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