#2F4CB7#2F4CB7

#2F4CB7 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.2% C 0.173 H 267.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2F4CB7
RGBrgb(47, 76, 183)
HSLhsl(227, 59%, 45%)
HSVhsv(227, 74%, 72%)
CMYKcmyk(74.3%, 58.5%, 0%, 28.2%)
CIE-LABlab(36.35, 27.27, -59.72)
CIE-LCHlch(36.35, 65.65, 294.54°)
OKLaboklab(46.16% -0.0075 -0.1723)
OKLCHoklch(46.16% 0.173 267.5)
XYZxyz(12.3010, 9.1908, 45.9163)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CB7 #B79A2F
analogous
#2F90B7 #2F4CB7 #562FB7
triadic
#2F4CB7 #B72F4C #4CB72F
tetradic
#2F4CB7 #B72F90 #B79A2F #2FB756
square
#2F4CB7 #B72F90 #B79A2F #2FB756
split-complementary
#2F4CB7 #B7562F #90B72F
monochromatic
#162456 #223886 #2F4CB7 #516CD2 #8295DF

Accessibility & contrast

On white

7.40
#2F4CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2F4CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CB7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CB7#FFFFFF#000000##FFFFFF
##2F4CB71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#004FB5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4cb7;
/* rgb */ color: rgb(47, 76, 183);
/* oklch */ color: oklch(46.2% 0.173 267.5);
Tailwind
colors: {
  custom: {
    50: '#7b7dcd',
    500: '#2f4cb7',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cb7;
$custom-light: #7b7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cb7",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 183
  },
  "hsl": {
    "h": 227.206,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46158,
    "c": 0.17251,
    "h": 267.5
  },
  "luminance": 0.09192
}

Semantic roles & 50–950 ramp

primary
#2F4CB7
secondary
#C8B77A
accent
#C145E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F4CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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